Skip to content

Commit

Permalink
Add dependencies to timelord install script portion
Browse files Browse the repository at this point in the history
  • Loading branch information
Starttoaster committed Jul 21, 2023
1 parent 0c05a8f commit 3e7aedd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ fi
# Install timelord if service variable contains timelord substring
if [ -z "${service##*timelord*}" ]; then
echo "Installing timelord using install-timelord.sh"

# install-timelord.sh relies on lsb-release for determining the cmake installation method, and git for building chiavdf
DEBIAN_FRONTEND=noninteractive apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y lsb-release git

/bin/sh ./install-timelord.sh
fi

Expand All @@ -125,3 +130,5 @@ if [[ ${service} == "harvester" ]]; then
fi

exec "$@"

python -c 'import subprocess; id = subprocess.run(["lsb_release", "-is"], stdout=subprocess.PIPE); version = subprocess.run(["lsb_release", "-rs"], stdout=subprocess.PIPE); print(id.stdout.decode("ascii") == "Ubuntu\n" and float(version.stdout) < float(20.04))'

0 comments on commit 3e7aedd

Please sign in to comment.