-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (24 loc) · 955 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# build on top of the erc provided base image
FROM ghcr.io/europeanroverchallenge/erc-remote-image-base:latest
# install some dependencies. Vim for quick viewing of scripts inside the cli.
RUN apt update && apt -y upgrade && apt install -y \
python3-vcstool \
ros-melodic-rospy-tutorials \
vim
# install python requirements
RUN python3 -m pip install --upgrade pip
RUN pip3 install \
opencv-python \
matplotlib \
rospkg \
pynput
# copy .repos file in for fast cloning of remote repository if necessary
COPY motion.repos /
# build ROS workspace
WORKDIR /motion_control
COPY src ./src
#RUN /bin/bash -c '. /opt/ros/melodic/setup.bash; cd /motion_control; catkin build'
#cleaner way of building the workspace
RUN catkin config --extend /opt/ros/melodic && catkin build --no-status
# Automatically source the workspace when starting a bash session
RUN echo "source /motion_control/devel/setup.bash" >> /etc/bash.bashrc