diff --git a/.github/workflows/image-e2e-tests.yaml b/.github/workflows/image-e2e-tests.yaml index 23df435..54d4b8d 100644 --- a/.github/workflows/image-e2e-tests.yaml +++ b/.github/workflows/image-e2e-tests.yaml @@ -37,3 +37,7 @@ jobs: run: docker run --platform linux/arm64 --user=999 --rm kcllang/kcl sh -c "kcl version" - 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 "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 "mkdir -p /tmp && cd /tmp && kcl run --git https://github.com/kcl-lang/flask-demo-kcl-manifests" 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