Skip to content
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

Build & install packages in the base image #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Build & install packages in the base image
manzato committed Nov 25, 2022
commit 08cc7f7d39ad427d382df43ec0a1b59bd47e8821
3 changes: 1 addition & 2 deletions docker/build
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
ABSDIR=$(dirname $(readlink -f $0))
docker build -t docker_noahbot $ABSDIR
(cd .. && docker build -t docker_noahbot -f docker/dockerfile .)
21 changes: 20 additions & 1 deletion docker/dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
FROM osrf/ros:noetic-desktop-full

RUN apt-get update

RUN apt-get update && apt-get dist-upgrade --yes

RUN mkdir -p /home/catkin_ws/src

WORKDIR /home/catkin_ws/src

COPY move_base_utils move_base_utils
COPY noah_2dnav noah_2dnav
COPY noah_control noah_control
COPY noah_description noah_description
COPY noah_gazebo noah_gazebo
COPY noah_rtabmap noah_rtabmap
COPY noah_rviz noah_rviz

WORKDIR /home/catkin_ws

RUN rosdep install --from-paths src --ignore-src -r -y

RUN . /opt/ros/noetic/setup.sh && catkin_make

CMD ["/bin/echo", ""]