Skip to content

Commit

Permalink
test in the temp dir
Browse files Browse the repository at this point in the history
Signed-off-by: Peefy <[email protected]>
  • Loading branch information
Peefy committed Nov 20, 2024
1 parent 94e6694 commit 541806f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/image-e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 541806f

Please sign in to comment.