Skip to content

Commit

Permalink
QEMU_PATCHES bake var to set arbitrary patches to apply
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Jul 12, 2022
1 parent e638c27 commit d5b36fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ variable "QEMU_REPO" {
variable "QEMU_VERSION" {
default = "v7.0.0"
}
variable "QEMU_PATCHES" {
default = "cpu-max"
}

// Special target: https://github.com/docker/metadata-action#bake-definition
target "meta-helper" {
Expand Down Expand Up @@ -40,6 +43,7 @@ target "mainline" {
args = {
QEMU_REPO = QEMU_REPO
QEMU_VERSION = QEMU_VERSION
QEMU_PATCHES = QEMU_PATCHES
QEMU_PRESERVE_ARGV0 = "1"
}
cache-to = ["type=inline"]
Expand All @@ -54,7 +58,7 @@ target "buildkit" {
inherits = ["mainline"]
args = {
BINARY_PREFIX = "buildkit-"
QEMU_PATCHES = "cpu-max,buildkit-direct-execve-v7.0"
QEMU_PATCHES = "${QEMU_PATCHES},buildkit-direct-execve-v7.0"
QEMU_PRESERVE_ARGV0 = ""
}
cache-from = ["${REPO}:buildkit-master"]
Expand Down

0 comments on commit d5b36fd

Please sign in to comment.