Skip to content

Commit 9a21a82

Browse files
authored
Merge pull request #172 from kcl-lang/test-kcl-mod-pull-in-image
test: add kcl mod pull test in the image
2 parents 7a2de26 + e5681b7 commit 9a21a82

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: .github/workflows/image-e2e-tests.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@ jobs:
3737
run: docker run --platform linux/arm64 --user=999 --rm kcllang/kcl sh -c "kcl version"
3838
- name: Test docker arm64 non-user with KCL running
3939
run: docker run --platform linux/arm64 --user=999 --rm kcllang/kcl sh -c "echo 'a=1' | kcl run -"
40+
- name: Test docker arm64 non-user with KCL module OCI source pulling
41+
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"
42+
- name: Test docker arm64 non-user with KCL module Git source pulling
43+
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 for: Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ RUN kcl version && \
2525
RUN apt-get update && \
2626
apt-get install -y --no-install-recommends git ca-certificates && \
2727
rm -rf /var/lib/apt/lists/*
28+
# Create the temporary directory
29+
RUN mkdir -p /tmp
2830

2931
# Configure KCL runtime environment
3032
# Set temporary directories for write permissions

0 commit comments

Comments
 (0)