Skip to content

Commit

Permalink
Merge pull request #172 from kcl-lang/test-kcl-mod-pull-in-image
Browse files Browse the repository at this point in the history
test: add kcl mod pull test in the image
  • Loading branch information
Peefy authored Nov 20, 2024
2 parents 7a2de26 + e5681b7 commit 9a21a82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/image-e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
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 9a21a82

Please sign in to comment.