mirror of
https://github.com/brain-hackers/buildbrain
synced 2026-06-13 13:28:32 +09:00
perf: merge apt install apt-transport-https into the curl/gnupg call, reducing one full apt resolver invocation
This commit is contained in:
@@ -57,12 +57,9 @@ echo "brain" > /etc/hostname
|
|||||||
|
|
||||||
# curl, ca-certificates: downloads the GPG key from packagecloud
|
# curl, ca-certificates: downloads the GPG key from packagecloud
|
||||||
# gnupg, debian-archive-keyring: packagecloud verification dependency
|
# gnupg, debian-archive-keyring: packagecloud verification dependency
|
||||||
|
# apt-transport-https: needed before we can add the HTTPS packagecloud source
|
||||||
DEBIAN_FRONTEND=noninteractive \
|
DEBIAN_FRONTEND=noninteractive \
|
||||||
apt install -y curl ca-certificates gnupg debian-archive-keyring
|
apt install -y curl ca-certificates gnupg debian-archive-keyring apt-transport-https
|
||||||
|
|
||||||
# apt-transport-https can be installed after debian-archive-keyring being installed
|
|
||||||
DEBIAN_FRONTEND=noninteractive \
|
|
||||||
apt install -y apt-transport-https
|
|
||||||
|
|
||||||
# Install GPG key and packagecloud repository config
|
# Install GPG key and packagecloud repository config
|
||||||
mkdir -p /etc/apt/keyrings
|
mkdir -p /etc/apt/keyrings
|
||||||
|
|||||||
Reference in New Issue
Block a user