diff --git a/rockcraft.yaml b/rockcraft.yaml index 4b4e271..18b8a66 100644 --- a/rockcraft.yaml +++ b/rockcraft.yaml @@ -40,3 +40,10 @@ parts: source-branch: "v1.60.0" build-snaps: - go/1.21/stable + non-root-user: + plugin: nil + after: [redis] + overlay-script: | + # Create a user in the $CRAFT_OVERLAY chroot + groupadd -R $CRAFT_OVERLAY -g 1000 redis + useradd -R $CRAFT_OVERLAY -M -r -g redis -u 1000 redis