Skip to content

Commit

Permalink
working container
Browse files Browse the repository at this point in the history
  • Loading branch information
tetov committed May 23, 2024
1 parent 0167c7a commit b278ffe
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
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
Expand All @@ -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"]

0 comments on commit b278ffe

Please sign in to comment.