Skip to content

Commit efe5640

Browse files
committed
chore: debug podman v3
1 parent 24bbe86 commit efe5640

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
echo "### find all non-owned files ###############################"
8181
find . ! -user $USER
8282
echo "### show files in container ################################"
83-
podman run --rm -v $PWD:/repo:Z --entrypoint ash ci/voxbox:${{ matrix.rubygem_puppet }} -c "ls -la"
83+
podman run --userns=keep-id --rm -v $PWD:/repo:Z --entrypoint ash ci/voxbox:${{ matrix.rubygem_puppet }} -c "ls -la"
8484
echo "############################################################"
8585
# podman run --rm -v $PWD:/repo:Z ci/voxbox:${{ matrix.rubygem_puppet }} -f /Rakefile -T
8686
# podman run --rm -v $PWD:/repo:Z ci/voxbox:${{ matrix.rubygem_puppet }} -f /Rakefile lint

Containerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ RUN apk update \
9393
&& apk add --no-cache openssh-client gpg jq yamllint git curl \
9494
&& addgroup -g 1001 -S voxbox \
9595
&& adduser -u 1001 -S -G voxbox voxbox \
96-
&& rm -rf /usr/local/lib/ruby/gems
96+
&& rm -rf /usr/local/lib/ruby/gems \
97+
&& mkdir /repo \
98+
&& chown voxbox:voxbox /repo
9799

98100
COPY --from=builder /usr/local/lib/ruby/gems /usr/local/lib/ruby/gems
99101
COPY --from=builder /usr/local/bundle /usr/local/bundle

0 commit comments

Comments
 (0)