Skip to content

Commit a49653d

Browse files
committed
Add DEBIAN_FRONTEND=noninteractive between sudo and apt install (space-ros#206)
Signed-off-by: Rufus Wong <[email protected]>
1 parent 4841b5e commit a49653d

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

moveit2/Dockerfile

+2-5
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ LABEL org.label-schema.url="https://github.com/space-ros"
3838
LABEL org.label-schema.vcs-url="https://github.com/space-ros/docker-images"
3939
LABEL org.label-schema.vcs-ref=${VCS_REF}
4040

41-
# Disable prompting during package installation
42-
ARG DEBIAN_FRONTEND=noninteractive
43-
4441
# Clone all space-ros sources
4542
RUN mkdir ${SPACEROS_DIR}/src \
4643
&& vcs import ${SPACEROS_DIR}/src < ${SPACEROS_DIR}/exact.repos
@@ -62,7 +59,7 @@ RUN rosdep update
6259
# Install the various build and test tools
6360
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
6461
--mount=type=cache,target=/var/lib/apt,sharing=locked \
65-
sudo apt install -y \
62+
sudo DEBIAN_FRONTEND=noninteractive apt install -y \
6663
build-essential \
6764
clang-format \
6865
cmake \
@@ -141,7 +138,7 @@ RUN /bin/bash -c 'source ${SPACEROS_DIR}/install/setup.bash \
141138
# Add a couple sample GUI apps for testing
142139
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
143140
--mount=type=cache,target=/var/lib/apt,sharing=locked \
144-
sudo apt-get install -y \
141+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
145142
firefox \
146143
glmark2 \
147144
libcanberra-gtk3-0 \

navigation2/Dockerfile

+1-4
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ LABEL org.label-schema.url="https://github.com/space-ros"
3838
LABEL org.label-schema.vcs-url="https://github.com/space-ros/docker-images"
3939
LABEL org.label-schema.vcs-ref=${VCS_REF}
4040

41-
# Disable prompting during package installation
42-
ARG DEBIAN_FRONTEND=noninteractive
43-
4441
SHELL ["/bin/bash", "-c"]
4542

4643
# Define workspace locations
@@ -70,7 +67,7 @@ RUN rm -rf src build log
7067
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
7168
--mount=type=cache,target=/var/lib/apt,sharing=locked \
7269
sudo apt update && \
73-
sudo apt install -y ros-humble-rviz2 ros-humble-nav2-bringup
70+
sudo DEBIAN_FRONTEND=noninteractive apt install -y ros-humble-rviz2 ros-humble-nav2-bringup
7471

7572
# Set up the entrypoint
7673
COPY ./entrypoint.sh /

space_robots/Dockerfile

+3-6
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,11 @@ ENV DEMO_DIR=${HOME_DIR}/demos_ws
4040
ENV IGNITION_VERSION fortress
4141
ENV GZ_VERSION fortress
4242

43-
# Disable prompting during package installation
44-
ARG DEBIAN_FRONTEND=noninteractive
45-
4643
# Install base image dependencies
4744
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
4845
--mount=type=cache,target=/var/lib/apt,sharing=locked \
4946
sudo apt-get update -y && \
50-
sudo apt-get install -y \
47+
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
5148
git-lfs \
5249
python3-rosinstall-generator
5350

@@ -71,12 +68,12 @@ WORKDIR ${DEMO_DIR}
7168
# Install libmongoc for development
7269
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
7370
--mount=type=cache,target=/var/lib/apt,sharing=locked \
74-
sudo apt-get install libmongoc-dev -y
71+
sudo DEBIAN_FRONTEND=noninteractive apt-get install libmongoc-dev -y
7572

7673
# Compile mongo cxx driver https://mongocxx.org/mongocxx-v3/installation/linux/
7774
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
7875
--mount=type=cache,target=/var/lib/apt,sharing=locked \
79-
sudo apt-get install libssl-dev build-essential devscripts debian-keyring fakeroot debhelper cmake libboost-dev libsasl2-dev libicu-dev libzstd-dev doxygen -y
76+
sudo DEBIAN_FRONTEND=noninteractive apt-get install libssl-dev build-essential devscripts debian-keyring fakeroot debhelper cmake libboost-dev libsasl2-dev libicu-dev libzstd-dev doxygen -y
8077
RUN wget https://github.com/mongodb/mongo-cxx-driver/releases/download/r3.6.7/mongo-cxx-driver-r3.6.7.tar.gz
8178
RUN tar -xzf mongo-cxx-driver-r3.6.7.tar.gz
8279
RUN cd mongo-cxx-driver-r3.6.7/build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local && sudo cmake --build . --target EP_mnmlstc_core && cmake --build . && sudo cmake --build . --target install

0 commit comments

Comments
 (0)