Skip to content

Commit

Permalink
Add DEBIAN_FRONTEND=noninteractive between sudo and apt install (spac…
Browse files Browse the repository at this point in the history
…e-ros#206)

Signed-off-by: Rufus Wong <rcywongaa@gmail.com>
  • Loading branch information
rcywongaa committed Dec 17, 2024
1 parent 4841b5e commit a49653d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
7 changes: 2 additions & 5 deletions moveit2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ LABEL org.label-schema.url="https://github.com/space-ros"
LABEL org.label-schema.vcs-url="https://github.com/space-ros/docker-images"
LABEL org.label-schema.vcs-ref=${VCS_REF}

# Disable prompting during package installation
ARG DEBIAN_FRONTEND=noninteractive

# Clone all space-ros sources
RUN mkdir ${SPACEROS_DIR}/src \
&& vcs import ${SPACEROS_DIR}/src < ${SPACEROS_DIR}/exact.repos
Expand All @@ -62,7 +59,7 @@ RUN rosdep update
# Install the various build and test tools
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
sudo apt install -y \
sudo DEBIAN_FRONTEND=noninteractive apt install -y \
build-essential \
clang-format \
cmake \
Expand Down Expand Up @@ -141,7 +138,7 @@ RUN /bin/bash -c 'source ${SPACEROS_DIR}/install/setup.bash \
# Add a couple sample GUI apps for testing
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
sudo apt-get install -y \
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
firefox \
glmark2 \
libcanberra-gtk3-0 \
Expand Down
5 changes: 1 addition & 4 deletions navigation2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ LABEL org.label-schema.url="https://github.com/space-ros"
LABEL org.label-schema.vcs-url="https://github.com/space-ros/docker-images"
LABEL org.label-schema.vcs-ref=${VCS_REF}

# Disable prompting during package installation
ARG DEBIAN_FRONTEND=noninteractive

SHELL ["/bin/bash", "-c"]

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

# Set up the entrypoint
COPY ./entrypoint.sh /
Expand Down
9 changes: 3 additions & 6 deletions space_robots/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,11 @@ ENV DEMO_DIR=${HOME_DIR}/demos_ws
ENV IGNITION_VERSION fortress
ENV GZ_VERSION fortress

# Disable prompting during package installation
ARG DEBIAN_FRONTEND=noninteractive

# Install base image dependencies
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
sudo apt-get update -y && \
sudo apt-get install -y \
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
git-lfs \
python3-rosinstall-generator

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

# Compile mongo cxx driver https://mongocxx.org/mongocxx-v3/installation/linux/
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
sudo apt-get install libssl-dev build-essential devscripts debian-keyring fakeroot debhelper cmake libboost-dev libsasl2-dev libicu-dev libzstd-dev doxygen -y
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
RUN wget https://github.com/mongodb/mongo-cxx-driver/releases/download/r3.6.7/mongo-cxx-driver-r3.6.7.tar.gz
RUN tar -xzf mongo-cxx-driver-r3.6.7.tar.gz
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
Expand Down

0 comments on commit a49653d

Please sign in to comment.