Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-doc
Commits
684eb8b6
Commit
684eb8b6
authored
Oct 14, 2021
by
Guilhem Saurel
Browse files
docker: use cache for apt
parent
9f67c1e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
.dockers/ubuntu-18.04/Dockerfile
View file @
684eb8b6
...
...
@@ -2,10 +2,10 @@ FROM ubuntu:18.04
ENV
DEVEL_HPP_DIR=/workspace UBUNTU=bionic ROS=melodic
RUN
apt-get update
-y
&&
apt-get
install
-y
\
curl
\
gnupg2
\
&&
rm
-rf
/var/lib/apt/lists/
*
RUN
--mount
=
type
=
cache,sharing
=
locked,target
=
/var/cache/apt
--mount
=
type
=
cache,sharing
=
locked,target
=
/var/lib/apt
\
apt-get update
-qqy
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-qqy
\
curl
\
gnupg2
ADD
repos.key /
RUN
echo
"deb http://packages.ros.org/ros/ubuntu
${
UBUNTU
}
main"
>
/etc/apt/sources.list.d/ros-latest.list
\
...
...
@@ -15,8 +15,8 @@ RUN echo "deb http://packages.ros.org/ros/ubuntu ${UBUNTU} main" > /etc/apt/sour
>>
/etc/apt/sources.list.d/robotpkg.list
\
&&
apt-key add /repos.key
RUN
apt-get update
-qqy
\
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-qqy
\
RUN
--mount
=
type
=
cache,sharing
=
locked,target
=
/var/cache/apt
--mount
=
type
=
cache,sharing
=
locked,target
=
/var/lib/apt
\
apt-get update
-qqy
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-qqy
\
cmake
\
doxygen
\
g++
\
...
...
@@ -63,7 +63,6 @@ RUN apt-get update -qqy \
sudo
\
wget
\
&&
apt-get remove
-y
texlive-latex-base texlive-binaries ghostscript
\
&&
apt-get autoremove
-y
\
&&
rm
-rf
/var/lib/apt/lists/
*
&&
apt-get autoremove
-y
COPY
auto-install-hpp.sh /
.dockers/ubuntu-20.04/Dockerfile
View file @
684eb8b6
...
...
@@ -2,10 +2,10 @@ FROM ubuntu:20.04
ENV
DEVEL_HPP_DIR=/workspace UBUNTU=focal ROS=noetic
RUN
apt-get update
-y
&&
apt-get
install
-y
\
curl
\
gnupg2
\
&&
rm
-rf
/var/lib/apt/lists/
*
RUN
--mount
=
type
=
cache,sharing
=
locked,target
=
/var/cache/apt
--mount
=
type
=
cache,sharing
=
locked,target
=
/var/lib/apt
\
apt-get update
-qqy
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-qqy
\
curl
\
gnupg2
ADD
repos.key /
RUN
echo
"deb http://packages.ros.org/ros/ubuntu
${
UBUNTU
}
main"
>
/etc/apt/sources.list.d/ros-latest.list
\
...
...
@@ -15,8 +15,8 @@ RUN echo "deb http://packages.ros.org/ros/ubuntu ${UBUNTU} main" > /etc/apt/sour
>>
/etc/apt/sources.list.d/robotpkg.list
\
&&
apt-key add /repos.key
RUN
apt-get update
-qqy
\
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-qqy
\
RUN
--mount
=
type
=
cache,sharing
=
locked,target
=
/var/cache/apt
--mount
=
type
=
cache,sharing
=
locked,target
=
/var/lib/apt
\
apt-get update
-qqy
&&
DEBIAN_FRONTEND
=
noninteractive apt-get
install
-qqy
\
cmake
\
doxygen
\
g++
\
...
...
@@ -63,7 +63,6 @@ RUN apt-get update -qqy \
sudo
\
wget
\
&&
apt-get remove
-y
texlive-latex-base texlive-binaries ghostscript
\
&&
apt-get autoremove
-y
\
&&
rm
-rf
/var/lib/apt/lists/
*
&&
apt-get autoremove
-y
COPY
auto-install-hpp.sh /
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment