We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dc9688 commit 613bad1Copy full SHA for 613bad1
docker-entrypoint.sh
@@ -8,6 +8,20 @@ fi
8
9
cd /chia-blockchain || exit 1
10
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
25
# shellcheck disable=SC1091
26
. ./activate
27
0 commit comments