Skip to content

Commit c906187

Browse files
committed
♻🐋 Dockerfile modified due to refactor
1 parent ebb7b9c commit c906187

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Dockerfile

+8-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@ RUN ["/bin/bash", "-c", "wget https://services.gradle.org/distributions/gradle-5
1818
ENV GRADLE_HOME=/opt/gradle/gradle-5.5.1
1919
ENV PATH=${GRADLE_HOME}/bin:${PATH}
2020

21-
COPY jason_ws/ /jason_ws
2221
RUN [ "/bin/bash","-c","source /opt/ros/melodic/setup.bash && \
23-
cd /jason_ws && catkin_make"]
22+
mkdir -p /jason_ros_ws/src && \
23+
cd /jason_ros_ws/src && catkin_init_workspace"]
24+
25+
COPY hw_bridge/ /jason_ros_ws/src
26+
COPY jason_msgs/ /jason_ros_ws/src
27+
28+
RUN [ "/bin/bash","-c","source /opt/ros/melodic/setup.bash && \
29+
cd /jason_ros_ws && catkin_make"]
2430

2531
COPY rosjava_agents/ /rosjava_agents/
2632
WORKDIR /rosjava_agents

entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
set -e
44

55
source "/opt/ros/$ROS_DISTRO/setup.bash"
6-
source "/jason_ws/devel/setup.bash"
6+
source "/jason_ros_ws/devel/setup.bash"
77

88
exec "$@"

0 commit comments

Comments
 (0)