2022-03-14 01:33:50 -04:00
|
|
|
variable "BUNDLES_OUTPUT" {
|
|
|
|
default = "./bundles"
|
|
|
|
}
|
2022-04-10 15:03:54 -04:00
|
|
|
variable "DOCKER_CROSSPLATFORMS" {
|
|
|
|
default = ""
|
|
|
|
}
|
2022-03-14 01:33:50 -04:00
|
|
|
|
|
|
|
target "_common" {
|
|
|
|
args = {
|
|
|
|
BUILDKIT_CONTEXT_KEEP_GIT_DIR = 1
|
2022-04-10 15:03:54 -04:00
|
|
|
APT_MIRROR = "cdn-fastly.deb.debian.org"
|
2022-03-14 01:33:50 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
group "default" {
|
|
|
|
targets = ["binary"]
|
|
|
|
}
|
|
|
|
|
|
|
|
target "binary" {
|
|
|
|
inherits = ["_common"]
|
|
|
|
target = "binary"
|
|
|
|
output = [BUNDLES_OUTPUT]
|
|
|
|
}
|
|
|
|
|
|
|
|
target "dynbinary" {
|
|
|
|
inherits = ["binary"]
|
|
|
|
target = "dynbinary"
|
|
|
|
}
|
2022-04-10 15:03:54 -04:00
|
|
|
|
|
|
|
target "cross" {
|
|
|
|
inherits = ["binary"]
|
|
|
|
args = {
|
|
|
|
CROSS = "true"
|
|
|
|
DOCKER_CROSSPLATFORMS = DOCKER_CROSSPLATFORMS
|
|
|
|
}
|
|
|
|
target = "cross"
|
|
|
|
}
|
2022-08-27 09:05:22 -04:00
|
|
|
|
|
|
|
#
|
|
|
|
# dev
|
|
|
|
#
|
|
|
|
|
|
|
|
variable "DEV_IMAGE" {
|
|
|
|
default = "docker-dev"
|
|
|
|
}
|
|
|
|
variable "SYSTEMD" {
|
|
|
|
default = "false"
|
|
|
|
}
|
|
|
|
|
|
|
|
target "dev" {
|
|
|
|
inherits = ["_common"]
|
|
|
|
target = "final"
|
|
|
|
args = {
|
|
|
|
SYSTEMD = SYSTEMD
|
|
|
|
}
|
|
|
|
tags = [DEV_IMAGE]
|
|
|
|
output = ["type=docker"]
|
|
|
|
}
|