Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accept ros distro as argument in Dockerfile (#412)
* Accept ros distro as argument in Dockerfile * /opt/ros is already sourced by ~/.bashrc * (actions) pass ros_distro to docker build * (actions) [temp] remove noetic Waiting for release of tf2_web_republisher
- Loading branch information
1 parent
170f1d3
commit bcdffa3
Showing
3 changed files
with
6 additions
and
8 deletions.
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
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 |
---|---|---|
@@ -1,16 +1,15 @@ | ||
FROM ros:kinetic-ros-core | ||
ARG ROS_DISTRO=melodic | ||
FROM ros:$ROS_DISTRO-ros-core | ||
|
||
ENV ROS_DISTRO=kinetic | ||
# Dependencies for rosbridge | ||
RUN apt update && apt-get install -y xvfb firefox git wget ros-$ROS_DISTRO-rosbridge-server ros-$ROS_DISTRO-tf2-web-republisher ros-$ROS_DISTRO-common-tutorials ros-$ROS_DISTRO-rospy-tutorials ros-$ROS_DISTRO-actionlib-tutorials | ||
|
||
# Install nvm, Node.js and node-gyp | ||
ENV NODE_VERSION v10.15.0 | ||
ENV NODE_VERSION=v10.15.0 | ||
RUN wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash \ | ||
&& . $HOME/.nvm/nvm.sh \ | ||
&& nvm install $NODE_VERSION && nvm alias default $NODE_VERSION \ | ||
&& npm install -g node-gyp | ||
|
||
RUN echo "source /opt/ros/kinetic/setup.bash" >> $HOME/.bashrc | ||
RUN echo "source /opt/ros/$ROS_DISTRO/setup.bash" >> $HOME/.bashrc | ||
ENV PATH /bin/versions/node/$NODE_VERSION/bin:$PATH | ||
|
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