kaniko's scratch image has no /tmp; the build script and act's RUNNER_TEMP both assume it exists. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,7 @@ jobs:
|
|||||||
# Daemonless image builder: kaniko :debug plus the /bin/sleep symlink
|
# Daemonless image builder: kaniko :debug plus the /bin/sleep symlink
|
||||||
# act needs for job-container PID 1 (see ci/Dockerfile.kaniko-act).
|
# act needs for job-container PID 1 (see ci/Dockerfile.kaniko-act).
|
||||||
# No docker socket, no privileges.
|
# No docker socket, no privileges.
|
||||||
image: pi5-16.local:3005/mikkeli/kaniko-act:v1.23.2
|
image: pi5-16.local:3005/mikkeli/kaniko-act:v1.23.2-r2
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Fetch source, build, push
|
- name: Fetch source, build, push
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
# Kaniko executor adapted for Gitea act_runner job containers.
|
# Kaniko executor adapted for Gitea act_runner job containers.
|
||||||
#
|
#
|
||||||
# act starts job containers with entrypoint /bin/sleep; kaniko's image
|
# act starts job containers with entrypoint /bin/sleep and sets
|
||||||
# already symlinks /bin/sh -> /busybox/sh but ships no /bin/sleep.
|
# RUNNER_TEMP=/tmp; kaniko's scratch-based image has neither /bin/sleep
|
||||||
# This wrapper adds that one symlink. Nothing else changes.
|
# (busybox lives under /busybox; /bin/sh is already symlinked) nor /tmp.
|
||||||
|
# This wrapper adds exactly those two. Nothing else changes.
|
||||||
#
|
#
|
||||||
# Bootstrap: the first build of this image is done manually on the host
|
# Bootstrap: the first build of this image is done manually on the host
|
||||||
# (docker build -f ci/Dockerfile.kaniko-act -t <registry>/mikkeli/kaniko-act:<ver> .)
|
# (docker build -f ci/Dockerfile.kaniko-act -t <registry>/mikkeli/kaniko-act:<ver> .)
|
||||||
@@ -10,4 +11,4 @@
|
|||||||
# the build-image workflow itself, using the previous kaniko-act.
|
# the build-image workflow itself, using the previous kaniko-act.
|
||||||
FROM gcr.io/kaniko-project/executor:v1.23.2-debug
|
FROM gcr.io/kaniko-project/executor:v1.23.2-debug
|
||||||
SHELL ["/busybox/sh", "-c"]
|
SHELL ["/busybox/sh", "-c"]
|
||||||
RUN ln -sf /busybox/sleep /bin/sleep
|
RUN ln -sf /busybox/sleep /bin/sleep && mkdir -p -m 1777 /tmp
|
||||||
|
|||||||
Reference in New Issue
Block a user