-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile: add ALPINE_CACHE image to lock apk versions
The `ALPINE_CACHE` image contains `/etc/apk/cache` for apk files referred from the entire Dockerfile. All the `apk add` commands in the Dockerfile are now executed with the mount for `ALPINE_CACHE` and with `--no-network`. The `ALPINE_CACHE` image defaults to the `alpine-cache-local` stage, but can be also set to `docker.io/moby/buildkit:${RELEASE}-alpine-cache` for reproducibility. Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
- Loading branch information
1 parent
02eecc6
commit 0cbda2e
Showing
5 changed files
with
109 additions
and
14 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 |
---|---|---|
|
@@ -146,6 +146,7 @@ jobs: | |
target-stage: | ||
- '' | ||
- rootless | ||
- alpine-cache | ||
steps: | ||
- | ||
name: Checkout | ||
|
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 |
---|---|---|
|
@@ -42,6 +42,7 @@ jobs: | |
flavor: | ||
- '' | ||
- 'rootless' | ||
- 'alpine-cache' | ||
steps: | ||
- | ||
name: Set up Docker Buildx | ||
|
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,33 @@ | ||
# List of apks to be cached in moby/buildkit:${RELEASE}-alpine-cache for reproducibility | ||
bash | ||
clang | ||
curl | ||
dnsmasq | ||
file | ||
fuse | ||
fuse3 | ||
fuse-overlayfs | ||
gcc | ||
git | ||
git-daemon | ||
gzip | ||
iptables | ||
ip6tables | ||
libseccomp-dev | ||
libseccomp-static | ||
lld | ||
make | ||
musl-dev | ||
nodejs | ||
npm | ||
openssh | ||
openssh-client | ||
pkgconfig | ||
pigz | ||
shadow | ||
shadow-uidmap | ||
sudo | ||
tar | ||
vim | ||
xz | ||
zlib |
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