Skip to content

Commit 853c325

Browse files
authored
Merge pull request #16472 from MinaProtocol/feature/no-apt-get
Remove `apt-get update` from aptly script
2 parents 1a237c8 + 5dc2abe commit 853c325

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

buildkite/scripts/debian/install.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,19 @@ for i in "${debs[@]}"; do
5252
debs_with_version+=("${i}=${MINA_DEB_VERSION}")
5353
done
5454

55-
# Install aptly
56-
$SUDO apt-get update
57-
$SUDO apt-get install -y aptly
58-
5955
# Start aptly
6056
source ./scripts/debian/aptly.sh start --codename $MINA_DEB_CODENAME --debians $LOCAL_DEB_FOLDER --component unstable --clean --background
6157

6258
# Install debians
6359
echo "Installing mina packages: $DEBS"
6460
echo "deb [trusted=yes] http://localhost:8080 $MINA_DEB_CODENAME unstable" | $SUDO tee /etc/apt/sources.list.d/mina.list
6561

66-
$SUDO apt-get update --yes
62+
# Update apt packages for the new repo, preserving all others
63+
$SUDO apt-get update --yes -o Dir::Etc::sourcelist="sources.list.d/mina.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0"
6764
$SUDO apt-get remove --yes "${debs[@]}"
6865
$SUDO apt-get install --yes --allow-downgrades "${debs_with_version[@]}"
6966

7067

7168

7269
# Cleaning up
73-
source ./scripts/debian/aptly.sh stop --clean
70+
source ./scripts/debian/aptly.sh stop --clean

buildkite/scripts/run-test-executive-local.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export DEBIAN_FRONTEND=noninteractive
4040
rm -f /etc/apt/sources.list.d/hashicorp.list
4141

4242
apt-get update
43-
apt-get install -y git apt-transport-https ca-certificates tzdata curl
43+
apt-get install -y git apt-transport-https ca-certificates aptly tzdata curl
4444

4545
TESTNET_NAME="berkeley"
4646

buildkite/src/Constants/ContainerImages.dhall

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
-- NOTE: minaToolchainBookworm is also used for building Ubuntu Jammy packages in CI
55
{ toolchainBase = "codaprotocol/ci-toolchain-base:v3"
66
, minaToolchainBullseye =
7-
"gcr.io/o1labs-192920/mina-toolchain@sha256:7e1ee3c956dc2ae149994139702fa46970b17ad68890d8c6c2d358b2700d2623"
7+
"gcr.io/o1labs-192920/mina-toolchain@sha256:b1816fd48deb3a67368b52597a391c60df882f4755f0d7075f02acf88b7bdf90"
88
, minaToolchainBookworm =
9-
"gcr.io/o1labs-192920/mina-toolchain@sha256:7e1ee3c956dc2ae149994139702fa46970b17ad68890d8c6c2d358b2700d2623"
9+
"gcr.io/o1labs-192920/mina-toolchain@sha256:b1816fd48deb3a67368b52597a391c60df882f4755f0d7075f02acf88b7bdf90"
1010
, minaToolchain =
11-
"gcr.io/o1labs-192920/mina-toolchain@sha256:7e1ee3c956dc2ae149994139702fa46970b17ad68890d8c6c2d358b2700d2623"
11+
"gcr.io/o1labs-192920/mina-toolchain@sha256:b1816fd48deb3a67368b52597a391c60df882f4755f0d7075f02acf88b7bdf90"
1212
, elixirToolchain = "elixir:1.10-alpine"
1313
, nodeToolchain = "node:14.13.1-stretch-slim"
1414
, ubuntu2004 = "ubuntu:20.04"

dockerfiles/stages/3-toolchain

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ USER root
1919
# afaict this is the last python dependency of any kind in CI
2020
RUN apt-get update --yes \
2121
&& apt-get install --yes \
22+
aptly \
2223
apt-transport-https \
2324
apt-utils \
2425
awscli \

0 commit comments

Comments
 (0)