mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
Update to Debian bullseye
This commit is contained in:
parent
cc18fe8b5b
commit
27c59b7e27
10 changed files with 50 additions and 15 deletions
|
|
@ -5,6 +5,7 @@ set -xeuo pipefail
|
|||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
DOCKER_VERSION=${1}
|
||||
DEBIAN_VERSION=${2:-buster}
|
||||
|
||||
apt-get update
|
||||
apt-get -y install \
|
||||
|
|
@ -16,7 +17,7 @@ apt-get -y install \
|
|||
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
|
||||
|
||||
|
||||
echo "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable" >> /etc/apt/sources.list.d/docker.list
|
||||
echo "deb [arch=amd64] https://download.docker.com/linux/debian ${DEBIAN_VERSION} stable" >> /etc/apt/sources.list.d/docker.list
|
||||
apt-get update
|
||||
|
||||
PACKAGE_VERSION=$(apt-cache policy docker-ce | awk -v dv=${DOCKER_VERSION}~ '$1 ~ dv {print $1}')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue