-
Notifications
You must be signed in to change notification settings - Fork 15
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
Improvements to documentation and docker setups from my getting spun up #101
Changes from all commits
027e012
8e2eb8c
a4b5afe
ee15ffd
8120191
160196c
a1d367e
cb11e34
5ae6c73
8943815
595ee1c
04fe7b1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Empty world dockerfile | ||
if [ -z /home/colcon_ws/install/setup.bash ]; then | ||
source /home/colcon_ws/install/setup.bash | ||
# tests dockerfile | ||
else #if [ -z ~/lrauv_ws/install/setup.bash ]; then | ||
source /home/developer/lrauv_ws/install/setup.bash | ||
# Make sure we're in the right workingdir | ||
cd /home/developer/lrauv_ws | ||
fi | ||
|
||
exec "$@" | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,10 +35,15 @@ RUN apt-get update \ | |
build-essential \ | ||
curl \ | ||
gnupg2 \ | ||
libpcl-dev \ | ||
lsb-release \ | ||
python3-numpy \ | ||
tmux \ | ||
tmuxinator \ | ||
tzdata \ | ||
wget \ | ||
python3-numpy | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& apt-get -qq clean | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it worth it cleaning it here, considering we'll do an update below again? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, this removes the contents of the apt cache from the layer, making the docker container much slimmer. Otherwise you just end up with outdated caches in every layer of the container. |
||
|
||
# Add Ignition's latest packages, which may be more up-to-date than the ones from the MBARI image | ||
RUN /bin/sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list' && \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have to add the nightly repo now, for Garden |
||
|
@@ -47,16 +52,10 @@ RUN /bin/sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable | |
|
||
# Install and upgrade the latest Ignition binaries | ||
RUN apt-get -qq update && apt-get -q -y install \ | ||
ignition-garden && apt-get dist-upgrade -y | ||
|
||
# Install PCL | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
libpcl-dev | ||
ignition-garden\ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& apt-get -qq clean && apt-get dist-upgrade -y | ||
|
||
# Clean up apt | ||
RUN rm -rf /var/lib/apt/lists/* \ | ||
&& apt-get -qq clean | ||
|
||
USER $USERNAME | ||
|
||
|
@@ -69,9 +68,12 @@ RUN rm -rf build log install src/lrauv | |
# Use current version of the code | ||
COPY . src/lrauv | ||
|
||
# Build image | ||
# Build workspace | ||
RUN [ "/bin/bash" , "-c" , "colcon build --cmake-args='-DBUILD_TESTING=true'" ] | ||
|
||
COPY docker/entrypoint.bash / | ||
# setup ignition environment | ||
ENTRYPOINT ["/entrypoint.bash"] | ||
|
||
# Run tests | ||
RUN [ "/bin/bash" , "-c" , ". ~/lrauv_ws/install/setup.sh; colcon test --event-handlers console_direct+" ] | ||
RUN [ "/bin/bash" , "-c" , ". ~/lrauv_ws/install/setup.sh; colcon test-result" ] | ||
CMD [ "/bin/bash" , "-c" , "colcon test --event-handlers console_direct+; colcon test-result" ] | ||
chapulina marked this conversation as resolved.
Show resolved
Hide resolved
|
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 launch file was removed in #102 , we should use plain
ign gazebo
commands now