Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker fixs #1238

Merged
merged 2 commits into from
Dec 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker/build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down