-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
FROM gramaziokohler/ros-noetic-base:latest | ||
FROM ros:noetic | ||
|
||
LABEL maintainer "Anton Tetov <[email protected]>" | ||
|
||
SHELL ["/bin/bash","-c"] | ||
|
||
# Create local catkin workspace | ||
ENV CATKIN_WS=/root/catkin_ws | ||
RUN mkdir -p $CATKIN_WS/src | ||
|
@@ -10,21 +12,21 @@ WORKDIR $CATKIN_WS | |
# copy repo to src | ||
COPY . ./src/biodigitalmatter_ros | ||
|
||
RUN source /opt/ros/${ROS_DISTRO}/setup.bash \ | ||
RUN . /opt/ros/${ROS_DISTRO}/setup.bash \ | ||
&& apt-get update \ | ||
&& rosdep update | ||
|
||
RUN apt-get install python3-vcstool python3-catkin-tools -y | ||
RUN apt-get install git python3-catkin-tools python3-vcstool -y | ||
|
||
RUN vcs import src < src/biodigitalmatter_ros/dependencies.repos \ | ||
&& vcs import src < src/abb_robot_driver/pkgs.repos | ||
|
||
RUN rosdep install -y --from-paths . --ignore-src --rosdistro ${ROS_DISTRO} | ||
|
||
RUN /opt/ros/${ROS_DISTRO}/bin/catkin_make | ||
RUN . /opt/ros/${ROS_DISTRO}/setup.bash && catkin build | ||
|
||
RUN echo "source /usr/local/bin/ros_catkin_entrypoint.sh" >> /root/.bashrc | ||
RUN echo 'source $CATKIN_WS/src/biodigitalmatter_ros/bashrc_fragment' >> /root/.bashrc | ||
|
||
ENTRYPOINT ["roslaunch" "biodigitalmatter_ros" "bringup.lauch"] | ||
CMD ["bash"] | ||
CMD ["bash"] |