Skip to content

Commit 613bad1

Browse files
committed
Add ability to install any version from source
1 parent 4dc9688 commit 613bad1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docker-entrypoint.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@ fi
88

99
cd /chia-blockchain || exit 1
1010

11+
# Install alternate version of chia if source mode is requested
12+
# Enables testing dev versions of chia-docker in the container even if the version is not published to the container registry
13+
if [[ -n ${source_ref} ]]; then
14+
echo "Installing chia from source for ref: ${source_ref}"
15+
16+
DEBIAN_FRONTEND=noninteractive apt-get update
17+
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y lsb-release sudo git
18+
19+
rm -rf .penv .venv venv .mypy_cache
20+
git fetch origin "${source_ref}"
21+
git checkout "${source_ref}"
22+
/bin/sh ./install.sh -s
23+
fi
24+
1125
# shellcheck disable=SC1091
1226
. ./activate
1327

0 commit comments

Comments
 (0)