forked from liqianqi/rm_pioneer_vision
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (28 loc) · 1.08 KB
/
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
30
31
32
33
34
35
FROM ros:galactic-ros-base
# install tools
RUN apt-get update && apt dist-upgrade -y && \
apt-get install -y wget vim htop \
ros-galactic-xacro ros-galactic-camera-info-manager ros-galactic-rosbridge-server \
ros-galactic-joint-state-publisher ros-galactic-compressed-image-transport ros-galactic-usb-cam && \
rm -rf /var/lib/apt/lists/*
# setup zsh
RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.2/zsh-in-docker.sh)" -- \
-t jispwoso -p git \
-p https://github.com/zsh-users/zsh-autosuggestions \
-p https://github.com/zsh-users/zsh-syntax-highlighting && \
chsh -s /bin/zsh && \
rm -rf /var/lib/apt/lists/*
# create workspace
RUN mkdir -p /ros_ws/src
WORKDIR /ros_ws/
# copy source code
COPY . src/rm_vision
# install dependencies
RUN apt-get update && \
rosdep install --from-paths src --ignore-src -r -y \
&& rm -rf /var/lib/apt/lists/*
# build source
RUN . /opt/ros/galactic/setup.sh && colcon build --symlink-install
# setup scripts
COPY scripts scripts
RUN cat scripts/zshrc >> /root/.zshrc && rm -r scripts