Skip to content

Commit 33803aa

Browse files
committed
fixup! feat(platform): add buildkit image CI custom build with uuid
Signed-off-by: Radek Ježek <radek.jezek@ibm.com>
1 parent c7cf4ba commit 33803aa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build-buildkit.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ jobs:
4141
cat > Dockerfile << 'EOF'
4242
FROM moby/buildkit:${{ github.event.inputs.tag }}
4343
USER root
44-
45-
RUN add_user -D -u ${{ github.event.inputs.uid }} oc_user \
44+
# Using useradd because adduser does not support UID beyond 256k
45+
RUN apk add --no-cache shadow
46+
RUN useradd -u ${{ github.event.inputs.uid }} -m -s /bin/bash oc_user \
4647
&& mkdir -p /run/user/${{ github.event.inputs.uid }} /home/oc_user/.local/tmp /home/oc_user/.local/share/buildkit \
4748
&& chown -R oc_user /run/user/${{ github.event.inputs.uid }} /home/oc_user \
4849
&& echo oc_user:100000:65536 | tee /etc/subuid | tee /etc/subgid

0 commit comments

Comments
 (0)