From 6f196a867b5f92febb691b66fbdb79dbda6539f7 Mon Sep 17 00:00:00 2001 From: dkijania Date: Wed, 26 Jul 2023 12:44:43 +0200 Subject: [PATCH] fix apt-get install --- buildkite/scripts/replayer-test.sh | 14 +++++++------- buildkite/src/Command/ReplayerTest.dhall | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/buildkite/scripts/replayer-test.sh b/buildkite/scripts/replayer-test.sh index bdcb0297277..8dedae0a00c 100755 --- a/buildkite/scripts/replayer-test.sh +++ b/buildkite/scripts/replayer-test.sh @@ -6,13 +6,13 @@ PGPASSWORD=arbitraryduck set -eo pipefail echo "Updating apt, installing packages" -apt-get update +sudo apt-get update # Don't prompt for answers during apt-get install export DEBIAN_FRONTEND=noninteractive # time zone = US Pacific -/bin/echo -e "12\n10" | apt-get install -y tzdata -apt-get install -y git apt-transport-https ca-certificates curl wget +/bin/echo -e "12\n10" | sudo apt-get install -y tzdata +sudo apt-get install -y git apt-transport-https ca-certificates curl wget git config --global --add safe.directory /workdir @@ -21,7 +21,7 @@ source buildkite/scripts/export-git-env-vars.sh #download postgres 15 # Create the file repository configuration -echo "deb http://apt.postgresql.org/pub/repos/apt ubuntu -pgdg main" | tee /etc/apt/sources.list.d/pgdg.list +echo "deb [trusted=yes] http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list # Import the repository signing key wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo tee /etc/apt/trusted.gpg.d/pgdg.asc &>/dev/null @@ -35,11 +35,11 @@ sudo apt install postgresql-15 postgresql-client-15 -y # Check version psql --version -echo "deb [trusted=yes] http://packages.o1test.net bullseye ${MINA_DEB_RELEASE}" | tee /etc/apt/sources.list.d/mina.list -apt-get update +echo "deb [trusted=yes] http://packages.o1test.net bullseye ${MINA_DEB_RELEASE}" | sudo tee /etc/apt/sources.list.d/mina.list +sudo apt-get update echo "Installing archive node package: mina-archive=${MINA_DEB_VERSION}" -apt-get install --allow-downgrades -y mina-archive=${MINA_DEB_VERSION} +sudo apt-get install --allow-downgrades -y mina-archive=${MINA_DEB_VERSION} echo "Generating locale for Postgresql" locale-gen en_US.UTF-8 diff --git a/buildkite/src/Command/ReplayerTest.dhall b/buildkite/src/Command/ReplayerTest.dhall index d0e2cb615a7..3d0e97ed5aa 100644 --- a/buildkite/src/Command/ReplayerTest.dhall +++ b/buildkite/src/Command/ReplayerTest.dhall @@ -12,7 +12,7 @@ let Cmd = ../Lib/Cmds.dhall in commands = [ Cmd.runInDocker Cmd.Docker::{ - image = (../Constants/ContainerImages.dhall).ubuntu2004 + image = (../Constants/ContainerImages.dhall).minaToolchainBullseye } "./buildkite/scripts/replayer-test.sh" ],