Skip to content

Commit

Permalink
Add ability to install any version from source
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender committed Sep 11, 2024
1 parent 4dc9688 commit 613bad1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@ fi

cd /chia-blockchain || exit 1

# Install alternate version of chia if source mode is requested
# Enables testing dev versions of chia-docker in the container even if the version is not published to the container registry
if [[ -n ${source_ref} ]]; then
echo "Installing chia from source for ref: ${source_ref}"

DEBIAN_FRONTEND=noninteractive apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y lsb-release sudo git

rm -rf .penv .venv venv .mypy_cache
git fetch origin "${source_ref}"
git checkout "${source_ref}"
/bin/sh ./install.sh -s
fi

# shellcheck disable=SC1091
. ./activate

Expand Down

0 comments on commit 613bad1

Please sign in to comment.