Procházet zdrojové kódy

add a container to preload dependencies for CI

classabbyamp před 4 měsíci
rodič
revize
5d4f90905b
2 změnil soubory, kde provedl 30 přidání a 0 odebrání
  1. 10 0
      container/Containerfile
  2. 20 0
      container/docker-bake.hcl

+ 10 - 0
container/Containerfile

@@ -0,0 +1,10 @@
+FROM ghcr.io/void-linux/void-glibc-full:latest
+
+ARG MIRROR="https://repo-default.voidlinux.org/"
+
+RUN xbps-install -SyuR "${MIRROR}/current" xbps \
+	&& xbps-install -yuR "${MIRROR}/current" \
+	&& xbps-install -yuR "${MIRROR}/current" \
+		bash make git kmod xz lzo qemu-user-arm qemu-user-aarch64 binfmt-support outils dosfstools e2fsprogs
+
+CMD ["/bin/sh"]

+ 20 - 0
container/docker-bake.hcl

@@ -0,0 +1,20 @@
+variable "MIRROR" {
+  default = "https://repo-ci.voidlinux.org/"
+}
+
+target "docker-metadata-action" {}
+
+target "_common" {
+  inherits = ["docker-metadata-action"]
+  dockerfile = "container/Containerfile"
+  cache-to = ["type=local,dest=/tmp/buildx-cache"]
+  cache-from = ["type=local,src=/tmp/buildx-cache"]
+  args = {
+    "MIRROR" = "${MIRROR}"
+  }
+}
+
+target "void-mklive" {
+  inherits = ["_common"]
+  platforms = ["linux/amd64"]
+}