Parcourir la source

bin-image bake target

Allows to build a non-runnable image that contains bundles.

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
(cherry picked from commit ae1ca671780967a29745c8abbdac0d60eee71655)
Kevin Alvarez il y a 2 ans
Parent
commit
71846e82c1
1 fichiers modifiés avec 24 ajouts et 0 suppressions
  1. 24 0
      docker-bake.hcl

+ 24 - 0
docker-bake.hcl

@@ -152,6 +152,30 @@ target "all-cross" {
   inherits = ["all", "_platforms"]
   inherits = ["all", "_platforms"]
 }
 }
 
 
+#
+# bin image
+#
+
+target "bin-image" {
+  inherits = ["all"]
+  tags = ["moby-bin:local"]
+  output = ["type=docker"]
+}
+
+target "bin-image-cross" {
+  inherits = ["bin-image"]
+  output = ["type=image"]
+  platforms = [
+    "linux/amd64",
+    "linux/arm/v6",
+    "linux/arm/v7",
+    "linux/arm64",
+    "linux/ppc64le",
+    "linux/s390x",
+    "windows/amd64"
+  ]
+}
+
 #
 #
 # dev
 # dev
 #
 #