Skip to content

Commit

Permalink
Merge branch 'dockertest' into ros2
Browse files Browse the repository at this point in the history
  • Loading branch information
woensug-choi committed Aug 9, 2024
2 parents d5ae9af + 550f7d9 commit 3df20aa
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
17 changes: 13 additions & 4 deletions .docker/jazzy.amd64.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ RUN adduser --shell /bin/bash --disabled-password --gecos '' $USER \

# Install ROS-Gazebo framework
ADD https://raw.githubusercontent.com/IOES-Lab/dave/$BRANCH/\
extras/ros-jazzy-gz-harmonic-install.sh install.sh
extras/ros-jazzy-binary-gz-harmonic-source-install.sh install.sh
RUN bash install.sh

# Set up Dave workspace
ENV DAVE_WS /root/ws_dave
ENV DAVE_WS=/opt/ws_dave
WORKDIR $DAVE_WS/src

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

# source entrypoint setup
RUN touch /ros_entrypoint.sh && sed --in-place --expression \
'$i source "$DAVE_WS/install/setup.bash"' /ros_entrypoint.sh
'$i source "/opt/ws_dave/install/setup.bash"' /ros_entrypoint.sh

# Source ROS and Gazebo
RUN sed --in-place --expression \
'$i source "/opt/ros/jazzy/setup.bash"' /ros_entrypoint.sh && \
sed --in-place --expression \
'$i source "/opt/gazebo/install/setup.bash"' /ros_entrypoint.sh && \
sed --in-place --expression \
'$i export PYTHONPATH=$PYTHONPATH:/opt/gazebo/install/lib/python' /ros_entrypoint.sh

# Set User as user
USER $USER
RUN echo "source /opt/ros/jazzy/setup.bash" >> ~/.bashrc
RUN echo "source /opt/ros/jazzy/setup.bash" >> ~/.bashrc && \
echo "source /opt/gazebo/install/setup.bash" >> ~/.bashrc
8 changes: 5 additions & 3 deletions .docker/jazzy.arm64v8.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@

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

# ROS-Gazebo arg
Expand All @@ -87,11 +87,11 @@ ARG ROS_DISTRO="jazzy"

# Install ROS-Gazebo framework
ADD https://raw.githubusercontent.com/IOES-Lab/dave/$BRANCH/\
extras/ros-jazzy-gz-harmonic-install.sh install.sh
extras/ros-jazzy-binary-gz-harmonic-source-install.sh install.sh
RUN bash install.sh

# Set up Dave workspace
ENV ROS_UNDERLAY /home/$USER/dave_ws/install
ENV ROS_UNDERLAY=/home/$USER/dave_ws/install
WORKDIR $ROS_UNDERLAY/../src

ADD https://raw.githubusercontent.com/IOES-Lab/dave/$BRANCH/\
Expand Down Expand Up @@ -129,6 +129,8 @@ RUN touch /ros_entrypoint.sh && sed --in-place --expression \
# Set User as user
USER docker
RUN echo "source /opt/ros/jazzy/setup.bash" >> ~/.bashrc && \
echo "source /opt/gazebo/install/setup.bash" >> ~/.bashrc && \
echo "export PYTHONPATH=$PYTHONPATH:/opt/gazebo/install/lib/python" >> ~/.bashrc && \
echo "if [ -d ~/HOST ]; then chown docker:docker ~/HOST; fi" \
>> ~/.bashrc

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/docker-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
tags: ["*"]
branches:
- ros2
- dockertest

env:
IMAGE_NAME: ${{ github.repository }}
Expand All @@ -15,7 +16,8 @@ env:

jobs:
build-and-push-to-docker-hub:
runs-on: ubuntu-latest
# runs-on: ubuntu-latest
runs-on: self-hosted
permissions:
contents: read
packages: write
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/docker-arm64v8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
tags: ["*"]
branches:
- ros2
- dockertest

env:
IMAGE_NAME: ${{ github.repository }}
Expand All @@ -15,7 +16,9 @@ env:

jobs:
build-and-push-to-docker-hub:
runs-on: ubuntu-latest
# runs-on: ubuntu-latest
runs-on: self-hosted
timeout-minutes: 1440
permissions:
contents: read
packages: write
Expand Down

0 comments on commit 3df20aa

Please sign in to comment.