Skip to content

Commit

Permalink
chore: Add docker-bake.hcl for multi-arch ROS 2 desktop VNC images (#200
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Tiryoh authored Feb 2, 2025
1 parent 16cfc53 commit 544a2eb
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# docker-bake.hcl

group "default" {
targets = [
"humble",
"iron",
"jazzy",
"rolling"
]
}

# Common variables
variable "REGISTRY_PREFIX" {
default = "docker.io/tiryoh/ros2-desktop-vnc"
}

# Common settings
target "common" {
dockerfile = "Dockerfile"
}

target "humble" {
inherits = ["common"]
context = "humble"
tags = [
"${REGISTRY_PREFIX}:humble",
]
platforms = ["linux/amd64", "linux/arm64"]
}

target "iron" {
inherits = ["common"]
context = "iron"
tags = [
"${REGISTRY_PREFIX}:iron"
]
platforms = ["linux/amd64", "linux/arm64"]
}

target "jazzy" {
inherits = ["common"]
context = "jazzy"
tags = [
"${REGISTRY_PREFIX}:jazzy"
"${REGISTRY_PREFIX}:latest"
]
platforms = ["linux/amd64", "linux/arm64"]
}

target "rolling" {
inherits = ["common"]
context = "rolling"
tags = [
"${REGISTRY_PREFIX}:rolling"
]
platforms = ["linux/amd64", "linux/arm64"]
}

0 comments on commit 544a2eb

Please sign in to comment.