From f2ab46f6d31f9acedf5de2d6c493fd12f7dfc934 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Tue, 7 Dec 2021 21:29:43 +0100 Subject: [PATCH 1/2] docker: update build.bash to remove caracters issue on image tag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit docker tag ubuntu:latest test:$(date +%Y_%b_%d_%H%M) 127 ↵ Error parsing reference: "test:2021_déc._07_2129" is not a valid repository/tag: invalid reference format Signed-off-by: Pierre Kancir --- docker/build.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/build.bash b/docker/build.bash index 699a3cd9b1..d9fa00a654 100755 --- a/docker/build.bash +++ b/docker/build.bash @@ -14,7 +14,7 @@ fi user_id=$(id -u) image_name=$1 dir_name=$(dirname $2) -image_plus_tag=$image_name:$(date +%Y_%b_%d_%H%M) +image_plus_tag=$image_name:$(date +%Y_%m_%d_%H%M) docker build --rm -t $image_plus_tag --build-arg user_id=$user_id --build-arg ign_distribution=$1 -f $2 . docker tag $image_plus_tag $image_name:latest From f17161e8617870c827bea65ab96ed8a2ae9353df Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Tue, 7 Dec 2021 21:30:19 +0100 Subject: [PATCH 2/2] docker: update readme about Ignition distribution name Signed-off-by: Pierre Kancir --- docker/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docker/README.md b/docker/README.md index 7f91e6e88b..052ad65f2b 100644 --- a/docker/README.md +++ b/docker/README.md @@ -69,25 +69,25 @@ distribution using debians. **Steps** 1. Build a docker image using the `build.bash` command. The first argument - must be the name of the Ignition distribution. For example, to build an - image of Ignition Blueprint: + must be the name of the Ignition distribution. The list of Ignition distribution can be found at [Ignition distribution](https://ignitionrobotics.org/docs). For example, to build an + image of Ignition Fortress: ``` - ./build.bash ignition-blueprint ./Dockerfile.ignition + ./build.bash ignition-fortress ./Dockerfile.ignition ``` 2. Run the docker image using `run.bash`, and pass in the name of the docker image (first argument to the build.bash script). ``` - ./run.bash ignition-blueprint + ./run.bash ignition-fortress ``` 3. You can pass arguments to Ignition Gazebo by appending them the `run.bash` command. For example, to load the shapes.sdf file: ``` - ./run.bash ignition-blueprint -f shapes.sdf + ./run.bash ignition-fortress -f shapes.sdf ``` ## Appendix