Skip to content

Commit

Permalink
fix apt-get install
Browse files Browse the repository at this point in the history
  • Loading branch information
dkijania committed Jul 26, 2023
1 parent 68e389b commit 6f196a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions buildkite/scripts/replayer-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion buildkite/src/Command/ReplayerTest.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -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"
],
Expand Down

0 comments on commit 6f196a8

Please sign in to comment.