-
Notifications
You must be signed in to change notification settings - Fork 53
Simplify the relay tutorial docker setup #530
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
Conversation
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
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 <jrivero@osrfoundation.org>
docker/Dockerfile
Outdated
@@ -0,0 +1,68 @@ | |||
# Ubuntu 22.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: 24.04
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docker/Dockerfile
Outdated
|
||
# Install gazebo dependencies | ||
RUN /bin/sh -c 'echo "deb [trusted=yes] http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list' \ | ||
&& /bin/sh -c 'echo "deb [trusted=yes] http://packages.osrfoundation.org/gazebo/ubuntu-prerelease `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-prerelease.list' \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used this for testing but I think we should remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retarget to gz-transport14
?
./run.bash gz-transport | ||
``` | ||
|
||
Inside the docker instance, go to the `example` directory: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The order here should be:
Run your Docker container:
docker run -it --rm gz-transport-relay /bin/bash
Inside the docker instance, go to the example
directory:
cd /tmp/gz-transport/example/build
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The final WORKDIR
at the end of the Dockerfile should leave you exactly in that directory ready to run the example binary https://github.com/gazebosim/gz-transport/pull/530/files#diff-f34da55ca08f1a30591d8b0b3e885bcc678537b2a9a4aadea4f190806b374ddcR64
Signed-off-by: Jose Luis Rivero <jrivero@osrfoundation.org>
🎉 New feature
Simplify the docker setup for the relay example by removing the build.sh and run.sh scripts that were adding helpers for development but were really not needed to run the important code.
Summary
The two commits are self-explanatory:
Test it
I've verified that it builds just fine. @caguero verified that it runs fine.
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.gazebo-release) (as needed):