diff --git a/.github/workflows/image-e2e-tests.yaml b/.github/workflows/image-e2e-tests.yaml index 68b29f2..63caa0c 100644 --- a/.github/workflows/image-e2e-tests.yaml +++ b/.github/workflows/image-e2e-tests.yaml @@ -32,3 +32,23 @@ jobs: run: ./examples/test.sh - name: Run concurrent e2e tests run: ./scripts/concurrent_test.sh + + build-and-test-non-user: + name: Test non user docker + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version-file: go.mod + - name: Setup Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + version: v0.11.2 + install: true + - name: Test docker non-user + run: docker run --user=999 --rm kcllang/kcl sh -c "echo 'a=1' | kcl run -" diff --git a/Dockerfile b/Dockerfile index ec5b976..2f8fd45 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,7 @@ RUN /usr/local/bin/kcl RUN apt-get update && apt-get install make gcc git -y && rm -rf /var/lib/apt/lists/* # The reason for doing this below is to prevent the # container from not having write permissions. +ENV KCL_LIB_HOME=/tmp ENV KCL_PKG_PATH=/tmp ENV KCL_CACHE_PATH=/tmp # Install the tini diff --git a/VERSION b/VERSION index 56e9df1..1bfc953 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.10.3 \ No newline at end of file +0.10.4 \ No newline at end of file diff --git a/pkg/version/version.go b/pkg/version/version.go index 422006f..d54b34e 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -32,8 +32,9 @@ func getVersion(version string) string { } const ( - VersionTypeLatest = Version_0_10_3 + VersionTypeLatest = Version_0_10_4 + Version_0_10_4 VersionType = "0.10.4" Version_0_10_3 VersionType = "0.10.3" Version_0_10_2 VersionType = "0.10.2" Version_0_10_1 VersionType = "0.10.1"