diff --git a/rockcraft.yaml b/rockcraft.yaml index f92598e..eef465c 100644 --- a/rockcraft.yaml +++ b/rockcraft.yaml @@ -31,8 +31,19 @@ services: user: valkey parts: + valkey-user: + plugin: nil + overlay-script: | + set -x + useradd -R $CRAFT_OVERLAY -M -U -r valkey + override-prime: | + craftctl default + mkdir $CRAFT_PRIME/var/lib/valkey + chown valkey $CRAFT_PRIME/var/lib/valkey valkey: plugin: nil + after: + - valkey-user stage-snaps: - charmed-valkey/latest/edge redis_exporter: @@ -43,15 +54,4 @@ parts: source-type: git source-branch: "v1.60.0" build-snaps: - - go/1.21/stable - valkey-user: - plugin: nil - after: - - redis_exporter - overlay-script: | - set -x - useradd -R $CRAFT_OVERLAY -M -U -r valkey - override-prime: | - craftctl default - mkdir $CRAFT_PRIME/var/lib/valkey - chown valkey $CRAFT_PRIME/var/lib/valkey \ No newline at end of file + - go/1.21/stable \ No newline at end of file