Skip to content

Commit 5d4f909

Browse files
committed
add a container to preload dependencies for CI
1 parent ec6c8a4 commit 5d4f909

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

container/Containerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM ghcr.io/void-linux/void-glibc-full:latest
2+
3+
ARG MIRROR="https://repo-default.voidlinux.org/"
4+
5+
RUN xbps-install -SyuR "${MIRROR}/current" xbps \
6+
&& xbps-install -yuR "${MIRROR}/current" \
7+
&& xbps-install -yuR "${MIRROR}/current" \
8+
bash make git kmod xz lzo qemu-user-arm qemu-user-aarch64 binfmt-support outils dosfstools e2fsprogs
9+
10+
CMD ["/bin/sh"]

container/docker-bake.hcl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
variable "MIRROR" {
2+
default = "https://repo-ci.voidlinux.org/"
3+
}
4+
5+
target "docker-metadata-action" {}
6+
7+
target "_common" {
8+
inherits = ["docker-metadata-action"]
9+
dockerfile = "container/Containerfile"
10+
cache-to = ["type=local,dest=/tmp/buildx-cache"]
11+
cache-from = ["type=local,src=/tmp/buildx-cache"]
12+
args = {
13+
"MIRROR" = "${MIRROR}"
14+
}
15+
}
16+
17+
target "void-mklive" {
18+
inherits = ["_common"]
19+
platforms = ["linux/amd64"]
20+
}

0 commit comments

Comments
 (0)