Skip to content

Commit 492aa76

Browse files
author
Murilo Marinho
committed
[dockerfiles] Updating apt-get at the start to make sure it's the first layer.
1 parent 6605ea8 commit 492aa76

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

.devel/sas/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ ENV BASH_ENV="/etc/bash_env"
55
# Branch of this repository from which to download the install script
66
ARG BRANCH=jazzy
77

8+
# Update apt-get
9+
RUN sudo apt-get update -q \
10+
&& sudo apt-get upgrade -y \
11+
&& sudo apt-get autoremove -y \
12+
&& apt-get clean \
13+
&& rm -rf /var/lib/apt/lists/*
14+
815
# Run install script
916
RUN mkdir -p ~/sas_install \
1017
&& cd ~/sas_install \

.devel/sas_deb_builder/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ FROM juanjqo/ubuntu_24_dqrobotics_ros_jazzy
33
SHELL ["/bin/bash", "-c"]
44
ENV BASH_ENV="/etc/bash_env"
55

6+
# Update apt-get
7+
RUN sudo apt-get update -q \
8+
&& sudo apt-get upgrade -y \
9+
&& sudo apt-get autoremove -y \
10+
&& apt-get clean \
11+
&& rm -rf /var/lib/apt/lists/*
12+
613
# SAS-RELATED THINGS (no need for recursive here)
714
RUN mkdir -p ~/sas_ws/src
815
RUN cd ~/sas_ws/src && git clone -b jazzy https://github.com/SmartArmStack/smart_arm_stack_ROS2.git sas

install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ set -e
44
# Add SAS apt sources
55
curl -s --compressed "https://smartarmstack.github.io/smart_arm_stack_ROS2/KEY.gpg" | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/smartarmstack_lgpl.gpg >/dev/null
66
sudo curl -s --compressed -o /etc/apt/sources.list.d/smartarmstack_lgpl.list "https://smartarmstack.github.io/smart_arm_stack_ROS2/smartarmstack_lgpl.list"
7+
78
# Update & upgrade apt
89
sudo apt-get update -q
910
sudo apt-get upgrade -y
1011
sudo apt-get autoremove -y
12+
1113
# Install sas
1214
sudo apt-get install ros-jazzy-sas-*
15+
1316
# Remove unused apt info
1417
apt-get clean
1518
rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)