Skip to content

Commit

Permalink
test: launcher 2.4.0 - remove appuser
Browse files Browse the repository at this point in the history
  • Loading branch information
misohu committed Feb 12, 2025
1 parent 54128ef commit 0c1ca20
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions launcher/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ services:
override: merge
summary: "kfp launcher service"
startup: enabled
user: appuser
command: "/bin/launcher-v2"

parts:
Expand Down Expand Up @@ -58,16 +57,3 @@ parts:
$GOBIN/go-licenses csv $CRAFT_PART_BUILD/backend/src/v2/cmd/launcher-v2 > $CRAFT_PART_INSTALL/third_party/licenses.csv && \
diff $CRAFT_PART_INSTALL/third_party/licenses.csv $CRAFT_PART_BUILD/backend/third_party_licenses/launcher.csv && \
$GOBIN/go-licenses save $CRAFT_PART_BUILD/backend/src/v2/cmd/launcher-v2 --save_path $CRAFT_PART_INSTALL/third_party/NOTICES
# not-root user for this rock should be 'appuser'
non-root-user:
plugin: nil
after: [ launcher ]
overlay-script: |
# Create a user in the $CRAFT_OVERLAY chroot
groupadd -R $CRAFT_OVERLAY -g 1001 appuser
useradd -R $CRAFT_OVERLAY -M -r -u 1001 -g appuser appuser
override-prime: |
craftctl default
chown -R 584792:users bin

0 comments on commit 0c1ca20

Please sign in to comment.