forked from Cobot-Maker-Space/csjbot-alice-ros-control
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (26 loc) · 1.17 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
36
37
FROM ros:noetic
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y ros-noetic-desktop-full \
ros-noetic-catkin ros-noetic-teleop-twist-keyboard ros-noetic-teleop-twist-joy \
ros-noetic-roslib ros-noetic-rosbridge-server ros-noetic-rosserial-python \
ros-noetic-web-video-server \
netcat \
telnet \
git build-essential curl wget \
python3.8 \
python3-catkin-tools python3-osrf-pycommon \
python3-wstool python3-pip bash-completion && \
rm -rf /var/lib/apt/lists/*
WORKDIR /root/catkin_ws
# RUN ln -s /usr/bin/pip3 /usr/bin/pip
RUN ln -s /usr/bin/python3 /usr/bin/python
RUN pip install websockets asyncio python-openhab
COPY src/yolo_parts/requirements.txt /tmp/yolo_parts_requirements.txt
RUN pip install -r /tmp/yolo_parts_requirements.txt
RUN echo "source /opt/ros/$ROS_DISTRO/setup.sh" >> /root/.bashrc
RUN echo "source /root/catkin_ws/devel/setup.bash" >> /root/.bashrc
ENV ROS_LOG_DIR=/root/ros_logs/
CMD ["/ros_entrypoint.sh", "~/catkin_ws/launch_alice.sh"]
# TODO
# - Map ports across from outside to inside container (or run --network=host to auto assign ports)
# - Add device support to allow access to PS3 controller