Skip to content

Commit

Permalink
Dockerfile: Added Micro-XRCE-DDS-GEN instal to Dockerfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
paul.quillen authored and Ryanf55 committed Oct 28, 2024
1 parent a6f00a3 commit a136426
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
lsb-release \
sudo \
tzdata \
git \
default-jre \
bash-completion

COPY Tools/environment_install/install-prereqs-ubuntu.sh /ardupilot/Tools/environment_install/
Expand All @@ -42,6 +44,13 @@ RUN SKIP_AP_EXT_ENV=$SKIP_AP_EXT_ENV SKIP_AP_GRAPHIC_ENV=$SKIP_AP_GRAPHIC_ENV SK
# Check that local/bin are in PATH for pip --user installed package
RUN echo "if [ -d \"\$HOME/.local/bin\" ] ; then\nPATH=\"\$HOME/.local/bin:\$PATH\"\nfi" >> ~/.ardupilot_env

# Clone & install Micro-XRCE-DDS-Gen dependancy
RUN git clone --recurse-submodules https://github.com/ardupilot/Micro-XRCE-DDS-Gen.git /home/${USER_NAME}/Micro-XRCE-DDS-Gen \
&& cd /home/${USER_NAME}/Micro-XRCE-DDS-Gen \
&& ./gradlew assemble \
&& export AP_ENV_LOC="/home/${USER_NAME}/.ardupilot_env" \
&& echo "export PATH=\$PATH:$PWD/scripts" >> $AP_ENV_LOC

# Create entrypoint as docker cannot do shell substitution correctly
RUN export ARDUPILOT_ENTRYPOINT="/home/${USER_NAME}/ardupilot_entrypoint.sh" \
&& echo "#!/bin/bash" > $ARDUPILOT_ENTRYPOINT \
Expand Down

0 comments on commit a136426

Please sign in to comment.