Skip to content

Commit 4297073

Browse files
committed
ardupilot script should not activate venv by default. Activate blue venv instead.
1 parent 57a5fdb commit 4297073

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.docker/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ RUN . "/opt/ros/${ROS_DISTRO}/setup.sh" \
139139

140140
RUN echo "source ${USER_WORKSPACE}/install/setup.bash" >> /home/$USERNAME/.bashrc \
141141
&& echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> /home/$USERNAME/.bashrc \
142+
&& echo "source $VIRTUAL_ENV/bin/activate" >> /home/$USERNAME/.bashrc \
142143
&& echo "\n# Ensure colcon is run in the venv\nalias colcon='python3 -m colcon'" >> /home/$USERNAME/.bashrc
143144

144145
FROM robot AS desktop
@@ -189,6 +190,10 @@ RUN git clone -b ${ARDUPILOT_RELEASE} https://github.com/ArduPilot/ardupilot.git
189190
# Install ArduSub dependencies
190191
WORKDIR /home/$USERNAME/ardupilot
191192
ENV SKIP_AP_EXT_ENV=1 SKIP_AP_GRAPHIC_ENV=1 SKIP_AP_COV_ENV=1 SKIP_AP_GIT_CHECK=1
193+
# Do not install the STM development tools
194+
ENV DO_AP_STM_ENV=0
195+
# Do not activate the Ardupilot venv by default
196+
ENV DO_PYTHON_VENV_ENV=0
192197
RUN Tools/environment_install/install-prereqs-ubuntu.sh -y
193198

194199
# Build ArduSub

0 commit comments

Comments
 (0)