From a7baf65e4bfbe99401358ea35551f891689d447f Mon Sep 17 00:00:00 2001 From: bjoernellens1 <64093272+bjoernellens1@users.noreply.github.com> Date: Mon, 23 Oct 2023 13:50:15 +0200 Subject: [PATCH] Update README.md --- README.md | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1b1da9e..b909519 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,19 @@ docker run --privileged --rm tonistiigi/binfmt --install all docker run --privileged --rm myuser/binfmt ``` -## What you will want to change in your repository: -### my.repos and my_extended.repos: -These are yaml files containing the repositories you may want to include into your final ros2 workspace. -For a multi-stage build for instance, I define my base image repositories in "my.repos" and the extended image repositories in "my_extended.repos" +## Simple build +First things first: Let's begin with a short and simple build. This is a short hello, world! example. +### Clone this repository to your local machine +``` +git clone https://github.com/bjoernellens1/ros2_docker_template +``` +### Build the hello, world! image +``` +docker buildx bake hello-world --load # to load into local container registry +``` +``` +docker buildx bake hello-world --push # to push into specified remote container registry +``` ## To build the image for my_example (and push it to your container registry): ``` @@ -51,3 +60,10 @@ docker compose exec my_example bash ``` docker compose run my_example example_program ``` + +## Next steps +### Fork this repository and make it your own +### What you will want to change in your repository: +#### my.repos and my_extended.repos: +These are yaml files containing the repositories you may want to include into your final ros2 workspace. +For a multi-stage build for instance, I define my base image repositories in "my.repos" and the extended image repositories in "my_extended.repos"