Dockerfile: Added Micro-XRCE-DDS-GEN instal to Dockerfile.

This commit is contained in:
paul.quillen 2024-10-08 10:15:54 -05:00 committed by Peter Barker
parent 10b2f17594
commit a076e23cc3
1 changed files with 9 additions and 0 deletions

View File

@ -20,6 +20,8 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
lsb-release \ lsb-release \
sudo \ sudo \
tzdata \ tzdata \
git \
default-jre \
bash-completion bash-completion
COPY Tools/environment_install/install-prereqs-ubuntu.sh /ardupilot/Tools/environment_install/ COPY Tools/environment_install/install-prereqs-ubuntu.sh /ardupilot/Tools/environment_install/
@ -45,6 +47,13 @@ RUN git config --global --add safe.directory $PWD
# Check that local/bin are in PATH for pip --user installed package # 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 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 # Create entrypoint as docker cannot do shell substitution correctly
RUN export ARDUPILOT_ENTRYPOINT="/home/${USER_NAME}/ardupilot_entrypoint.sh" \ RUN export ARDUPILOT_ENTRYPOINT="/home/${USER_NAME}/ardupilot_entrypoint.sh" \
&& echo "#!/bin/bash" > $ARDUPILOT_ENTRYPOINT \ && echo "#!/bin/bash" > $ARDUPILOT_ENTRYPOINT \