diff --git a/.github/workflows/image-e2e-tests.yaml b/.github/workflows/image-e2e-tests.yaml index ef95f2b..bc44a3f 100644 --- a/.github/workflows/image-e2e-tests.yaml +++ b/.github/workflows/image-e2e-tests.yaml @@ -38,6 +38,6 @@ jobs: - name: Test docker arm64 non-user with KCL running run: docker run --platform linux/arm64 --user=999 --rm kcllang/kcl sh -c "echo 'a=1' | kcl run -" - name: Test docker arm64 non-user with KCL module OCI source pulling - run: docker run --platform linux/arm64 --user=999 -e KCL_PKG_PATH=/tmp --rm kcllang/kcl:release-kcl-image-0.10.x sh -c "kcl mod pull subhelloworld:0.0.1 --oci https://ghcr.io/kcl-lang/helloworld --tag 0.1.4" + run: docker run --platform linux/arm64 --user=999 -e KCL_PKG_PATH=/tmp --rm kcllang/kcl:release-kcl-image-0.10.x sh -c "mkdir -p /tmp && cd /tmp && kcl mod pull subhelloworld:0.0.1 --oci https://ghcr.io/kcl-lang/helloworld --tag 0.1.4" - name: Test docker arm64 non-user with KCL module Git source pulling - run: docker run --platform linux/arm64 --user=999 -e KCL_PKG_PATH=/tmp --rm kcllang/kcl:release-kcl-image-0.10.x sh -c "kcl mod pull cc:0.0.1 --git git://github.com/kcl-lang/flask-demo-kcl-manifests.git --commit 8308200" + run: docker run --platform linux/arm64 --user=999 -e KCL_PKG_PATH=/tmp --rm kcllang/kcl:release-kcl-image-0.10.x sh -c "mkdir -p /tmp && cd /tmp && kcl mod pull cc:0.0.1 --git git://github.com/kcl-lang/flask-demo-kcl-manifests.git --commit 8308200" diff --git a/Dockerfile b/Dockerfile index d23760e..a720d56 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,8 @@ RUN kcl version && \ RUN apt-get update && \ apt-get install -y --no-install-recommends git ca-certificates && \ rm -rf /var/lib/apt/lists/* +# Create the temporary directory +RUN mkdir -p /tmp # Configure KCL runtime environment # Set temporary directories for write permissions