-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
executable file
·27 lines (22 loc) · 992 Bytes
/
bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# Download the latest Bitcoin Gold Core release
mkdir base &> /dev/null
(cd base && curl -O -L https://github.com/BTCGPU/BTCGPU/releases/download/v0.17.3/bitcoin-gold-0.17.3-x86_64-linux-gnu.tar.gz)
# Unzip to ./bitcoin-gold
mkdir base/bitcoin-gold &> /dev/null
(cd base && tar --strip-components=1 -xf bitcoin-gold-0.17.3-x86_64-linux-gnu.tar.gz -C ./bitcoin-gold/)
# Clone bitcore git repo
(cd base && git clone https://github.com/BTCGPU/bitcore.git)
echo '''
Next step: Build Bitcore & Insight:
First, enter a shell in the Bitcore container (defined in the docker-compose file):
docker-compose run --rm --no-deps --entrypoint /bin/bash bitcore
Then within the shell, run the following to compile everything (Bitcore and Insight):
cd /opt/bitcore
npm install
npm run bootstrap
npm run compile
(cd packages/insight && npm install && npm run build:prod)
Once finished, you will have the compiled static frontend build at:
/opt/bitcore/packages/insight/www/
'''