-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from grafana/64-fix-cache-saving-issue
fix: use correct uid/gid to avoid cache saving propems in GH action mode
- Loading branch information
Showing
3 changed files
with
13 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
FROM debian:12.6-slim | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates | ||
RUN update-ca-certificates | ||
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && update-ca-certificates && \ | ||
addgroup --system --gid 127 docker && adduser --uid 1001 --gid 127 --disabled-password runner | ||
|
||
COPY k6registry /usr/bin/ | ||
|
||
USER runner | ||
|
||
ENTRYPOINT ["k6registry"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
k6registry `v0.1.23` is here 🎉! | ||
|
||
This is an internal maintenance release. | ||
|
||
**Fix cache saving issue** | ||
|
||
The GitHub workflow is running with user id `1001` and group id `127`. The k6registry docker container runs with the default user id in debian. As a consequence, the cache directory created under XDG_CACHE_HOME fails to save. | ||
|
||
The solution is to use the same user id and group id as the GitHub workflow in the k6registry docker container (user id: `1001`, group id: `127`). |