Skip to content

Commit

Permalink
Merge pull request #152 from Peefy/fix-image-lib-home-env
Browse files Browse the repository at this point in the history
fix: image lib home env
  • Loading branch information
Peefy authored Oct 17, 2024
2 parents a8eb2b5 + 4db48df commit 50cc9be
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/image-e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -"
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.3
0.10.4
3 changes: 2 additions & 1 deletion pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 50cc9be

Please sign in to comment.