Skip to content

Commit

Permalink
Simplify the docker build+run in relay tutorial
Browse files Browse the repository at this point in the history
Removed build.sh and run.sh scripts that were really not
needed to just run the relay example. Modify the
instructions accordingly.

Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero committed Sep 2, 2024
1 parent 5e55b3f commit 9318d58
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 146 deletions.
File renamed without changes.
44 changes: 0 additions & 44 deletions docker/build.bash

This file was deleted.

91 changes: 0 additions & 91 deletions docker/run.bash

This file was deleted.

14 changes: 3 additions & 11 deletions tutorials/08_relay.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,17 @@ Download the [build.bash](https://github.com/gazebosim/gz-transport/raw/gz-trans
[Dockerfile](https://github.com/gazebosim/gz-transport/raw/gz-transport14/docker/gz-transport/Dockerfile) files.

```{.sh}
wget https://github.com/gazebosim/gz-transport/raw/gz-transport14/docker/build.bash
wget https://github.com/gazebosim/gz-transport/raw/gz-transport14/docker/run.bash
mkdir gz-transport && wget https://github.com/gazebosim/gz-transport/raw/gz-transport14/docker/gz-transport/Dockerfile -O gz-transport/Dockerfile
chmod +x build.bash run.bash
wget https://github.com/gazebosim/gz-transport/raw/gz-transport14/docker/gz-transport/Dockerfile -O Dockerfile
```

Now, it's time to build the Docker image:
```
./build.bash gz-transport
docker build -t gz-transport-relay - < Dockerfile
```

Run your Docker container:
```
./run.bash gz-transport
```

Inside the docker instance, go to the `example` directory:
```
cd gz-transport/example/build
docker run -it --rm gz-transport-relay /bin/bash
```

Back on your host, make sure that you have Gazebo Tools and net-tools
Expand Down

0 comments on commit 9318d58

Please sign in to comment.