-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathagent.Dockerfile
48 lines (37 loc) · 1.45 KB
/
agent.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
38
39
40
41
42
43
44
45
46
47
48
# Base image
FROM ros:melodic-robot-bionic
# Update apt repo and pip2, and install python3, pip3
RUN apt-get update --fix-missing && \
apt-get install -y python-pip \
python3-dev \
python3-pip
# Install apt dependencies, add your apt dependencies to this list
RUN apt-get install -y git \
build-essential \
cmake \
vim \
ros-melodic-ackermann-msgs \
ros-melodic-genpy
# Upgrade pip
# RUN pip install --upgrade pip
# Install pip dependencies, add your pip dependencies to this list
# RUN pip install numpy==1.16.0 \
# scipy==1.2.0 \
# pyyaml
# RUN pip3 install numpy==1.16.0 \
# scipy==1.2.0 \
# pyyaml
# Creating a catkin workspace
RUN mkdir -p /catkin_ws/src
# Clone or copy over your source code
# Copying
# COPY ./your_package /catkin_ws/src/
# Cloning
# RUN cd /catkin_ws/src/ && \
# git clone https://github.com/your_user/your_repo.git
# Building your ROS packages
RUN /bin/bash -c "source /opt/ros/melodic/setup.bash; cd catkin_ws; catkin_make; source devel/setup.bash"
# Uncomment set the shell to bash to provide the "source" command
# SHELL ["/bin/bash", "-c"]
# Setting entry point command that runs when the container is brought up
# CMD source /catkin_ws/devel/setup.bash; roslaunch --wait your_package your_launch.launch