-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert buildpack-deps to use a bake file
- Loading branch information
1 parent
9646e8b
commit b9b1175
Showing
14 changed files
with
111 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
variable "IMAGE_NAME" { | ||
default = "buildpack-deps" | ||
} | ||
|
||
variable "CONTAINER_REGISTRY" { | ||
default = "docker.io/boxcutter" | ||
} | ||
|
||
# There's no darwin-based Docker, so if we're running on macOS, change the platform to linux | ||
variable "LOCAL_PLATFORM" { | ||
default = regex_replace("${BAKE_LOCAL_PLATFORM}", "^(darwin)", "linux") | ||
} | ||
|
||
target "_common" { | ||
dockerfile = "Containerfile" | ||
labels = { | ||
"org.opencontainers.image.source" = "https://github.com/polymathrobotics/oci" | ||
"org.opencontainers.image.licenses" = "Apache-2.0" | ||
"org.opencontainers.image.description" = "A collection of common build dependencies used for installing various modules." | ||
"org.opencontainers.image.title" = "${IMAGE_NAME}" | ||
} | ||
} | ||
|
||
target "curl" { | ||
inherits = ["_common"] | ||
target = "curl" | ||
tags = [ | ||
"${CONTAINER_REGISTRY}/${IMAGE_NAME}:jammy-curl", | ||
"${CONTAINER_REGISTRY}/${IMAGE_NAME}:22.04-curl" | ||
] | ||
} | ||
|
||
target "scm" { | ||
inherits = ["_common"] | ||
target = "scm" | ||
tags = [ | ||
"${CONTAINER_REGISTRY}/${IMAGE_NAME}:jammy-scm", | ||
"${CONTAINER_REGISTRY}/${IMAGE_NAME}:22.04-scm" | ||
] | ||
} | ||
|
||
group "local" { | ||
targets = ["curl", "scm", "default"] | ||
platforms = ["${LOCAL_PLATFORM}"] | ||
} | ||
|
||
target "default" { | ||
inherits = ["_common"] | ||
tags = [ | ||
"${CONTAINER_REGISTRY}/${IMAGE_NAME}:jammy", | ||
"${CONTAINER_REGISTRY}/${IMAGE_NAME}:22.04" | ||
] | ||
platforms = ["linux/amd64", "linux/arm64/v8", "linux/arm/v7"] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
describe command('curl') do | ||
it { should exist } | ||
end | ||
|
||
describe command('git') do | ||
it { should exist } | ||
end | ||
|
||
describe command('unzip') do | ||
it { should exist } | ||
end |