This repository has been archived by the owner on Feb 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
26 changed files
with
3,195 additions
and
1,541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/node:8.5.0 | ||
|
||
working_directory: ~/Cashier-BTC | ||
|
||
steps: | ||
- checkout | ||
|
||
- run: | ||
command: | | ||
echo Setting up | ||
npm install | ||
cp config.js.dev config.js | ||
sudo apt-get install --yes build-essential curl git | ||
sudo apt-get install --yes python-software-properties python g++ make | ||
sudo apt-get install -y erlang-dev erlang-manpages erlang-base-hipe erlang-eunit erlang-nox erlang-xmerl erlang-inets | ||
sudo apt-get install -y libmozjs185-dev libicu-dev libcurl4-gnutls-dev libtool | ||
cd ~/ | ||
wget http://ftp.fau.de/apache/couchdb/source/1.6.1/apache-couchdb-1.6.1.tar.gz | ||
tar xvzf apache-couchdb-* | ||
cd apache-couchdb-* | ||
./configure && make | ||
sudo make install | ||
sudo useradd -d /var/lib/couchdb couchdb || true | ||
sudo chown -R couchdb: /var/lib/couchdb /var/log/couchdb || true | ||
sudo chown -R couchdb: /usr/local/var/{lib,log,run}/couchdb /usr/local/etc/couchdb || true | ||
sudo chmod 0770 /usr/local/var/{lib,log,run}/couchdb/ || true | ||
sudo chmod 664 /usr/local/etc/couchdb/*.ini || true | ||
sudo chmod 775 /usr/local/etc/couchdb/*.d || true | ||
cd /etc/init.d | ||
sudo ln -s /usr/local/etc/init.d/couchdb couchdb || true | ||
sudo /etc/init.d/couchdb start || true | ||
sudo update-rc.d couchdb defaults || true | ||
sudo service couchdb restart || true | ||
sleep 5 | ||
curl http://127.0.0.1:5984/ || true | ||
curl -s -X PUT http://localhost:5984/_config/admins/user -d '"pass"' || true | ||
curl -s -X PUT http://user:pass@localhost:5984/cashier-btc || true | ||
cd ~/Cashier-BTC | ||
wget https://bitcoin.org/bin/bitcoin-core-0.15.0.1/bitcoin-0.15.0.1-x86_64-linux-gnu.tar.gz | ||
tar -xvf bitcoin-0.15.0.1-x86_64-linux-gnu.tar.gz | ||
- run: | ||
name: Running bitcoind in background... | ||
command: ~/Cashier-BTC/bitcoin-0.15.0/bin/bitcoind -rpcuser=user -rpcpassword=pass -rpcbind=0.0.0.0 -rpcallowip=127.0.0.1 -datadir=/tmp/ | ||
background: true | ||
|
||
- run: sleep 30 | ||
|
||
- run: cd ~/Cashier-BTC; npm test | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Bitcoin Core quick install guide | ||
================================ | ||
|
||
Install and run: | ||
|
||
```bash | ||
wget https://bitcoin.org/bin/bitcoin-core-0.15.0.1/bitcoin-0.15.0.1-x86_64-linux-gnu.tar.gz | ||
tar -xvf bitcoin-0.15.0.1-x86_64-linux-gnu.tar.gz | ||
cd bitcoin-0.15.0/ | ||
mkdir datadir | ||
./bin/bitcoind -port=8444 -rpcport=8442 -datadir=./datadir -rpcuser=user -rpcpassword=pass -rpcbind=0.0.0.0 -rpcallowip=44.33.22.11 | ||
# dont forget to put your own allowip, username, pass | ||
``` | ||
|
||
Wait till it syncs (might take a while). | ||
|
||
Run | ||
|
||
```bash | ||
./bin/bitcoin-cli -rpcclienttimeout=30 -rpcport=8442 -rpcuser=user -rpcpassword=pass getblockchaininfo | ||
``` | ||
|
||
to check it. If it hangs - blockchain is busy syncing, check out `debug.log` in datadir for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.