forked from HBRS-SDP/ss24-gazebo-simulation-freddy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (25 loc) · 866 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
30
31
32
33
# Use an official ROS image as a parent image
FROM osrf/ros:jazzy-desktop-full
# Set environment variables
ENV GZ_VERSION=harmonic
# Install dependencies
RUN apt-get update && apt-get install -y \
ros-jazzy-ros-gz \
ros-jazzy-ros2-control \
ros-jazzy-ros2-controllers \
ros-jazzy-gz-ros2-control \
ros-jazzy-joint-state-broadcaster
# Create workspace directory
RUN mkdir -p /root/eddie_ws/src
# Clone repositories
WORKDIR /root/eddie_ws/src
RUN git clone https://github.com/secorolab/eddie_gazebo.git
# Import dependent packages
RUN vcs import < /root/eddie_ws/src/eddie_gazebo/dep.repos
# Build the workspace
WORKDIR /root/eddie_ws
RUN /bin/bash -c "source /opt/ros/jazzy/setup.bash && colcon build"
# Source the workspace
RUN echo "source /root/eddie_ws/install/setup.bash" >> /root/.bashrc
# Set the entrypoint
ENTRYPOINT ["/bin/bash"]