From aad2eef6dd68b39b815255c30f25191bc35a4acd Mon Sep 17 00:00:00 2001 From: bjoernellens1 <64093272+bjoernellens1@users.noreply.github.com> Date: Mon, 23 Oct 2023 11:44:04 +0200 Subject: [PATCH] Update docker-compose.yaml --- docker-compose.yaml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 8288350..a5154cb 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -2,14 +2,27 @@ version: "3.9" services: # in docker compose, service are definitions of your docker containers - my_example: # for this example I am using a very simple docker build for reference: hello-world (builds very fast) + hello-world: # for this example I am using a very simple docker build for reference: hello-world (builds very fast) image: ghcr.io/bjoernellens1/ros2_docker_template/hello-world # hello-world image. No prefix means it defaults the image registry to dockerhub + build: + context: . + dockerfile: docker/hello-world.Dockerfile # the Dockerfile speciefies the steps taken in the build process. + tags: + - ghcr.io/bjoernellens1/ros2_docker_template/hello-world + target: hello-world # here you specify the build target in the Dockerfile + x-bake: # Definitions needed for buildx bake. This enhanced docker build system makes things much easier. + platforms: + #- linux/arm64 uncomment if arm64 platform is needed (like jetson nano or raspberry pi) + - linux/amd64 + + my_example: # for this example I am using a very simple docker build for reference: hello-world (builds very fast) + image: ghcr.io/bjoernellens1/ros2_docker_template/my_example # hello-world image. No prefix means it defaults the image registry to dockerhub build: context: . dockerfile: docker/my_example.Dockerfile # the Dockerfile speciefies the steps taken in the build process. tags: - - ghcr.io/bjoernellens1/ros2_docker_template/hello-world - target: hello-world # here you specify the build target in the Dockerfile + - ghcr.io/bjoernellens1/ros2_docker_template/my_example + target: my_example # here you specify the build target in the Dockerfile x-bake: # Definitions needed for buildx bake. This enhanced docker build system makes things much easier. platforms: #- linux/arm64 uncomment if arm64 platform is needed (like jetson nano or raspberry pi)