-
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
Complete ign to gz migration #247
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
f109950
Complete ign to gz migration
hidmic 1e13b8d
Fix manual CI dispatch
hidmic ce218a9
Fix Gazebo Garden base image
hidmic ff5908e
Fix CI base image
hidmic d38d206
Add missing PYTHONPATH
hidmic 11d25e8
Update gz.math imports
hidmic 1e2e17f
Fix diff computations in CI
hidmic 9566c13
Reduce DopplerVelocityLog verbosity
hidmic 5714364
Fix more diff computations in CI
hidmic 74cdc8b
Aggregate all proto messages in a single shared library
hidmic db7263e
Remove lrauv-application dependency
hidmic 728f0de
Bump acoustic comms multi-vehicle test duration
hidmic d2bafa2
Add developer user to base image
hidmic 7d40fb5
Fix gz_ws permissions in container
hidmic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ jobs: | |
uses: tj-actions/[email protected] | ||
with: | ||
files: docker/base/* | ||
since_last_remote_commit: true | ||
use_fork_point: true | ||
if: github.event_name != 'workflow_dispatch' | ||
- name: Compute base image name | ||
id: compute-base-image | ||
|
@@ -65,7 +65,7 @@ jobs: | |
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then | ||
suffix="$GITHUB_REF_SLUG" | ||
fi | ||
if ${{ steps.base-image-files-full-diff.outputs.any_changed }}; then | ||
if [[ "${{ steps.base-image-files-full-diff.outputs.any_changed }}" == "true" ]]; then | ||
suffix="$GITHUB_REF_SLUG" | ||
fi | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,9 +19,7 @@ | |
# Research Institute (MBARI) and the David and Lucile Packard Foundation | ||
# | ||
|
||
FROM mbari/lrauv-ignition-sim:unstable | ||
|
||
USER root | ||
FROM nvidia/opengl:1.0-glvnd-devel-ubuntu20.04 | ||
|
||
# This avoids keyboard interaction when asked for geographic area | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
@@ -32,27 +30,62 @@ RUN echo 'Etc/UTC' > /etc/timezone && \ | |
|
||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
build-essential \ | ||
cmake \ | ||
cppcheck \ | ||
curl \ | ||
gdb \ | ||
git \ | ||
gnupg2 \ | ||
libbluetooth-dev \ | ||
libcwiid-dev \ | ||
libgoogle-glog-dev \ | ||
libpcl-dev \ | ||
libspnav-dev \ | ||
libusb-dev \ | ||
lsb-release \ | ||
tzdata \ | ||
wget \ | ||
mercurial \ | ||
python3-dbg \ | ||
python3-empy \ | ||
python3-numpy | ||
python3-numpy \ | ||
python3-pip \ | ||
python3-venv \ | ||
software-properties-common \ | ||
sudo \ | ||
tzdata \ | ||
vim \ | ||
&& apt-get clean | ||
|
||
RUN sudo /bin/sh -c 'echo "deb [arch=amd64,arm64] http://repo.ros2.org/ubuntu/main `lsb_release -cs` main" > /etc/apt/sources.list.d/ros2-latest.list' \ | ||
&& curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add - \ | ||
&& sudo apt-get update \ | ||
&& sudo apt-get install -y python3-vcstool python3-colcon-common-extensions | ||
# Install Ignition build tools | ||
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. Minor comment : Ignition -> Gazebo |
||
# https://colcon.readthedocs.io/en/released/user/installation.html | ||
RUN /bin/sh -c 'echo "deb [arch=amd64,arm64] http://repo.ros2.org/ubuntu/main `lsb_release -cs` main" > /etc/apt/sources.list.d/ros2-latest.list' \ | ||
&& curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | apt-key add - | ||
RUN apt-get -qq update && apt-get -q -y install \ | ||
build-essential \ | ||
wget \ | ||
python3-vcstool \ | ||
python3-colcon-common-extensions \ | ||
&& apt-get dist-upgrade -y \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& apt-get -qq clean | ||
|
||
# Add a user with the same user_id as the user outside the container | ||
ENV USERNAME developer | ||
RUN useradd -U -ms /bin/bash $USERNAME \ | ||
&& echo "$USERNAME:$USERNAME" | chpasswd \ | ||
&& adduser $USERNAME sudo \ | ||
&& echo "$USERNAME ALL=NOPASSWD: ALL" >> /etc/sudoers.d/$USERNAME | ||
|
||
# Commands below run as the developer user | ||
USER $USERNAME | ||
|
||
# Check out Ignition source | ||
ENV IGN_WS /home/$USERNAME/ign_ws | ||
COPY docker/base/gz-garden.yaml ${IGN_WS}/gz-garden.yaml | ||
RUN mkdir -p ${IGN_WS}/src && cd ${IGN_WS} \ | ||
&& vcs import src < gz-garden.yaml | ||
# When running a container start in the developer's home folder | ||
WORKDIR /home/$USERNAME | ||
|
||
# Check out Gazebo source | ||
ENV GZ_WS /home/$USERNAME/gz_ws | ||
COPY --chown=$USERNAME docker/base/gz-garden.yaml ${GZ_WS}/gz-garden.yaml | ||
RUN mkdir -p ${GZ_WS}/src && cd ${GZ_WS} && \ | ||
vcs import src < gz-garden.yaml && vcs pull src | ||
|
||
USER root | ||
|
||
|
@@ -76,5 +109,6 @@ RUN rm -rf /var/lib/apt/lists/* \ | |
|
||
USER $USERNAME | ||
|
||
RUN cd ${IGN_WS} \ | ||
RUN cd ${GZ_WS} \ | ||
&& colcon build --merge-install --cmake-args -DBUILD_TESTING=OFF | ||
ENV PYTHONPATH ${GZ_WS}/install/lib/python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 : Do we need gdb, and libbluetooth for the docker ?
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.
Ahh, my mistake. I'll open up a follow-up PR.