File tree Expand file tree Collapse file tree 4 files changed +25
-9
lines changed Expand file tree Collapse file tree 4 files changed +25
-9
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,11 @@ RUN adduser --shell /bin/bash --disabled-password --gecos '' $USER \
39
39
40
40
# Install ROS-Gazebo framework
41
41
ADD https://raw.githubusercontent.com/IOES-Lab/dave/$BRANCH/\
42
- extras/ros-jazzy-gz-harmonic-install.sh install.sh
42
+ extras/ros-jazzy-binary- gz-harmonic-source -install.sh install.sh
43
43
RUN bash install.sh
44
44
45
45
# Set up Dave workspace
46
- ENV DAVE_WS /root /ws_dave
46
+ ENV DAVE_WS=/opt /ws_dave
47
47
WORKDIR $DAVE_WS/src
48
48
49
49
ADD https://raw.githubusercontent.com/IOES-Lab/dave/$BRANCH/\
@@ -62,8 +62,17 @@ RUN . "/opt/ros/${ROS_DISTRO}/setup.sh" && \
62
62
63
63
# source entrypoint setup
64
64
RUN touch /ros_entrypoint.sh && sed --in-place --expression \
65
- '$i source "$DAVE_WS/install/setup.bash"' /ros_entrypoint.sh
65
+ '$i source "/opt/ws_dave/install/setup.bash"' /ros_entrypoint.sh
66
+
67
+ # Source ROS and Gazebo
68
+ RUN sed --in-place --expression \
69
+ '$i source "/opt/ros/jazzy/setup.bash"' /ros_entrypoint.sh && \
70
+ sed --in-place --expression \
71
+ '$i source "/opt/gazebo/install/setup.bash"' /ros_entrypoint.sh && \
72
+ sed --in-place --expression \
73
+ '$i export PYTHONPATH=$PYTHONPATH:/opt/gazebo/install/lib/python' /ros_entrypoint.sh
66
74
67
75
# Set User as user
68
76
USER $USER
69
- RUN echo "source /opt/ros/jazzy/setup.bash" >> ~/.bashrc
77
+ RUN echo "source /opt/ros/jazzy/setup.bash" >> ~/.bashrc && \
78
+ echo "source /opt/gazebo/install/setup.bash" >> ~/.bashrc
Original file line number Diff line number Diff line change 78
78
79
79
# Using the pre-built image for above commented out dockerfile code lines
80
80
# hadolint ignore=DL3007
81
- FROM woensugchoi/ubuntu-arm-rdp-base:latest
81
+ FROM --platform=linux/arm64 woensugchoi/ubuntu-arm-rdp-base:latest
82
82
ARG USER=docker
83
83
84
84
# ROS-Gazebo arg
@@ -87,11 +87,11 @@ ARG ROS_DISTRO="jazzy"
87
87
88
88
# Install ROS-Gazebo framework
89
89
ADD https://raw.githubusercontent.com/IOES-Lab/dave/$BRANCH/\
90
- extras/ros-jazzy-gz-harmonic-install.sh install.sh
90
+ extras/ros-jazzy-binary- gz-harmonic-source -install.sh install.sh
91
91
RUN bash install.sh
92
92
93
93
# Set up Dave workspace
94
- ENV ROS_UNDERLAY /home/$USER/dave_ws/install
94
+ ENV ROS_UNDERLAY= /home/$USER/dave_ws/install
95
95
WORKDIR $ROS_UNDERLAY/../src
96
96
97
97
ADD https://raw.githubusercontent.com/IOES-Lab/dave/$BRANCH/\
@@ -129,6 +129,8 @@ RUN touch /ros_entrypoint.sh && sed --in-place --expression \
129
129
# Set User as user
130
130
USER docker
131
131
RUN echo "source /opt/ros/jazzy/setup.bash" >> ~/.bashrc && \
132
+ echo "source /opt/gazebo/install/setup.bash" >> ~/.bashrc && \
133
+ echo "export PYTHONPATH=$PYTHONPATH:/opt/gazebo/install/lib/python" >> ~/.bashrc && \
132
134
echo "if [ -d ~/HOST ]; then chown docker:docker ~/HOST; fi" \
133
135
>> ~/.bashrc
134
136
Original file line number Diff line number Diff line change 7
7
tags : ["*"]
8
8
branches :
9
9
- ros2
10
+ - dockertest
10
11
11
12
env :
12
13
IMAGE_NAME : ${{ github.repository }}
15
16
16
17
jobs :
17
18
build-and-push-to-docker-hub :
18
- runs-on : ubuntu-latest
19
+ # runs-on: ubuntu-latest
20
+ runs-on : self-hosted
19
21
permissions :
20
22
contents : read
21
23
packages : write
Original file line number Diff line number Diff line change 7
7
tags : ["*"]
8
8
branches :
9
9
- ros2
10
+ - dockertest
10
11
11
12
env :
12
13
IMAGE_NAME : ${{ github.repository }}
15
16
16
17
jobs :
17
18
build-and-push-to-docker-hub :
18
- runs-on : ubuntu-latest
19
+ # runs-on: ubuntu-latest
20
+ runs-on : self-hosted
21
+ timeout-minutes : 1440
19
22
permissions :
20
23
contents : read
21
24
packages : write
You can’t perform that action at this time.
0 commit comments