Docker Update 4
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -140,17 +140,22 @@ RUN apt-get update \
|
|||||||
USER $USERNAME
|
USER $USERNAME
|
||||||
WORKDIR /home/$USERNAME
|
WORKDIR /home/$USERNAME
|
||||||
|
|
||||||
|
# Set environment variables needed by ArduPilot install script
|
||||||
|
ENV USER=$USERNAME
|
||||||
|
ENV HOME=/home/$USERNAME
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
# ARDUPILOT SITL
|
# ARDUPILOT SITL
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
RUN git clone --recurse-submodules https://github.com/ArduPilot/ardupilot.git /home/$USERNAME/ardupilot
|
RUN git clone --recurse-submodules https://github.com/ArduPilot/ardupilot.git /home/$USERNAME/ardupilot
|
||||||
|
|
||||||
# Install ArduPilot prerequisites (writes to container's bashrc, not host)
|
# Install ArduPilot prerequisites (writes to container's bashrc, not host)
|
||||||
|
# The -y flag makes it non-interactive
|
||||||
WORKDIR /home/$USERNAME/ardupilot
|
WORKDIR /home/$USERNAME/ardupilot
|
||||||
RUN Tools/environment_install/install-prereqs-ubuntu.sh -y
|
RUN bash -c "Tools/environment_install/install-prereqs-ubuntu.sh -y"
|
||||||
|
|
||||||
# Build ArduCopter SITL
|
# Source environment and build ArduCopter SITL
|
||||||
RUN . ~/.profile && ./waf configure --board sitl && ./waf copter
|
RUN bash -c "source ~/.profile && ./waf configure --board sitl && ./waf copter"
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
# ARDUPILOT GAZEBO PLUGIN
|
# ARDUPILOT GAZEBO PLUGIN
|
||||||
|
|||||||
Reference in New Issue
Block a user