Skip to content

Commit

Permalink
skip dependency installation in container on hosted runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim Fehrs committed Sep 21, 2023
1 parent 4ec6d22 commit 6b4ae0e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,9 @@ jobs:
apt-get update
apt-get install -y containerd runc postgresql-client jq
chmod +x ./babylonnode
./babylonnode docker dependencies
# Not enough permissions in container on hosted runner to execute this
# ./babylonnode docker dependencies
apt install -y wget unzip rng-tools ansible
apt-get update
apt-get -qy full-upgrade
apt-get install -qy curl
Expand Down
1 change: 0 additions & 1 deletion node-runner-cli/setup/BaseSetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def dependencies():
run_shell_command("curl -fsSL https://get.docker.com -o get-docker.sh", shell=True)
run_shell_command("sudo sh get-docker.sh", shell=True)
BaseSetup.add_user_docker_group()
run_shell_command("docker run hello-world", shell=True, fail_on_error=True)
logger.info("Docker successfully installed")
run_shell_command('sudo apt install -y wget unzip rng-tools ansible', shell=True)
run_shell_command('sudo rngd -r /dev/random | true', shell=True)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ PGPASSWORD=$POSTGRES_PASSWORD psql -h localhost -U postgres -d radixdlt_ledger -
PGPASSWORD=$POSTGRES_PASSWORD psql -h localhost -U postgres -d postgres -P pager=off -c "DROP DATABASE IF EXISTS radixdlt_ledger;"

# Wipe ledger
sudo rm -rf /home/radixdlt/babylon-ledger/ | true
rm -rf /home/radixdlt/babylon-ledger/ | true

# Wipe docker image store
docker rmi $(docker image ls -q) | true

0 comments on commit 6b4ae0e

Please sign in to comment.