Skip to content

Commit 3df20aa

Browse files
committed
Merge branch 'dockertest' into ros2
2 parents d5ae9af + 550f7d9 commit 3df20aa

File tree

4 files changed

+25
-9
lines changed

4 files changed

+25
-9
lines changed

.docker/jazzy.amd64.dockerfile

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ RUN adduser --shell /bin/bash --disabled-password --gecos '' $USER \
3939

4040
# Install ROS-Gazebo framework
4141
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
4343
RUN bash install.sh
4444

4545
# Set up Dave workspace
46-
ENV DAVE_WS /root/ws_dave
46+
ENV DAVE_WS=/opt/ws_dave
4747
WORKDIR $DAVE_WS/src
4848

4949
ADD https://raw.githubusercontent.com/IOES-Lab/dave/$BRANCH/\
@@ -62,8 +62,17 @@ RUN . "/opt/ros/${ROS_DISTRO}/setup.sh" && \
6262

6363
# source entrypoint setup
6464
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
6674

6775
# Set User as user
6876
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

.docker/jazzy.arm64v8.dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878

7979
# Using the pre-built image for above commented out dockerfile code lines
8080
# hadolint ignore=DL3007
81-
FROM woensugchoi/ubuntu-arm-rdp-base:latest
81+
FROM --platform=linux/arm64 woensugchoi/ubuntu-arm-rdp-base:latest
8282
ARG USER=docker
8383

8484
# ROS-Gazebo arg
@@ -87,11 +87,11 @@ ARG ROS_DISTRO="jazzy"
8787

8888
# Install ROS-Gazebo framework
8989
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
9191
RUN bash install.sh
9292

9393
# Set up Dave workspace
94-
ENV ROS_UNDERLAY /home/$USER/dave_ws/install
94+
ENV ROS_UNDERLAY=/home/$USER/dave_ws/install
9595
WORKDIR $ROS_UNDERLAY/../src
9696

9797
ADD https://raw.githubusercontent.com/IOES-Lab/dave/$BRANCH/\
@@ -129,6 +129,8 @@ RUN touch /ros_entrypoint.sh && sed --in-place --expression \
129129
# Set User as user
130130
USER docker
131131
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 && \
132134
echo "if [ -d ~/HOST ]; then chown docker:docker ~/HOST; fi" \
133135
>> ~/.bashrc
134136

.github/workflows/docker-amd64.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
tags: ["*"]
88
branches:
99
- ros2
10+
- dockertest
1011

1112
env:
1213
IMAGE_NAME: ${{ github.repository }}
@@ -15,7 +16,8 @@ env:
1516

1617
jobs:
1718
build-and-push-to-docker-hub:
18-
runs-on: ubuntu-latest
19+
# runs-on: ubuntu-latest
20+
runs-on: self-hosted
1921
permissions:
2022
contents: read
2123
packages: write

.github/workflows/docker-arm64v8.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
tags: ["*"]
88
branches:
99
- ros2
10+
- dockertest
1011

1112
env:
1213
IMAGE_NAME: ${{ github.repository }}
@@ -15,7 +16,9 @@ env:
1516

1617
jobs:
1718
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
1922
permissions:
2023
contents: read
2124
packages: write

0 commit comments

Comments
 (0)