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 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