Skip to content

Commit

Permalink
Fix git perms issue during docker copter build
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywarhurst committed Oct 18, 2024
1 parent 145cc4b commit 70c44cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,14 @@ RUN SKIP_AP_EXT_ENV=$SKIP_AP_EXT_ENV SKIP_AP_GRAPHIC_ENV=$SKIP_AP_GRAPHIC_ENV SK
DO_AP_STM_ENV=$DO_AP_STM_ENV \
AP_DOCKER_BUILD=1 \
USER=${USER_NAME} \
Tools/environment_install/install-prereqs-ubuntu.sh -y
Tools/environment_install/install-prereqs-ubuntu.sh -y \
git config --global --add safe.directory $PWD

# 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



# 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 70c44cd

Please sign in to comment.