-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add elementsd container, improvements
- Loading branch information
Showing
13 changed files
with
533 additions
and
21 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
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,11 @@ | ||
# Changelog | ||
|
||
## 2019-07-03 | ||
- Replaced `bitcoind` Dockerfile with fully compiled version of 0.17.1 to match latest `elementsd` version. | ||
- Added `elementsd` container configuration and tooling, compiled from source. | ||
- Changed Ubuntu base containers to specific date version tag. | ||
- Minor configuration tweaks. | ||
- Add MPL2.0 license. | ||
|
||
## 2019-07-02 | ||
- Initial release. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
source .env | ||
|
||
docker-compose exec -T elementsd elements-cli \ | ||
-datadir=/elements \ | ||
-rpcuser=$ELEMENTS_RPC_USER \ | ||
-rpcpassword=$ELEMENTS_RPC_PASSWORD \ | ||
-rpcport=$ELEMENTS_RPC_PORT \ | ||
"$@" |
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,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
bin/e-cli generate 1 | ||
ADDRS=$(bin/e-cli getpeginaddress) | ||
MAINCHAIN=$(echo $ADDRS | jq '.mainchain_address' | tr -d '"') | ||
SIDECHAIN=$(echo $ADDRS | jq '.claim_script' | tr -d '"') | ||
TXID=$(bin/b-cli sendtoaddress $MAINCHAIN 1) | ||
bin/b-cli generate 101 | ||
PROOF=$(bin/b-cli gettxoutproof '''["'''$TXID'''"]''') | ||
RAW=$(bin/b-cli getrawtransaction $TXID) | ||
bin/e-cli claimpegin $RAW $PROOF | ||
bin/e-cli generate 1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,29 @@ | ||
FROM ubuntu:18.04 | ||
FROM ubuntu:bionic-20190612 as builder | ||
|
||
RUN apt-get -qq update && apt-get install -y software-properties-common | ||
|
||
RUN add-apt-repository -y ppa:bitcoin/bitcoin \ | ||
&& add-apt-repository -y universe && apt-get update | ||
|
||
RUN apt-get install -y bitcoind | ||
RUN apt-get install -y --fix-missing build-essential libtool \ | ||
autotools-dev autoconf pkg-config libssl-dev \ | ||
libboost-all-dev libprotobuf-dev protobuf-compiler \ | ||
libqrencode-dev autoconf openssl libssl-dev libevent-dev \ | ||
libminiupnpc-dev libzmq5-dev libdb4.8-dev libdb4.8++-dev \ | ||
git jq | ||
|
||
ADD ./bitcoin.conf /bitcoin/bitcoin.conf | ||
WORKDIR /build | ||
|
||
RUN git clone -n https://github.com/bitcoin/bitcoin . \ | ||
&& git checkout ef70f9b52b851c7997a9f1a0834714e3eebc1fd8 \ | ||
&& ./autogen.sh \ | ||
&& ./configure --without-gui --disable-tests \ | ||
&& make && make install | ||
|
||
|
||
FROM ubuntu:bionic-20190612 | ||
|
||
COPY --from=builder /usr/lib /usr/lib | ||
COPY --from=builder /usr/local/bin /usr/local/bin | ||
|
||
ADD ./bitcoin.conf /bitcoin/bitcoin.conf |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM ubuntu:bionic-20190612 as builder | ||
|
||
RUN apt-get -qq update && apt-get install -y software-properties-common | ||
|
||
RUN add-apt-repository -y ppa:bitcoin/bitcoin \ | ||
&& add-apt-repository -y universe && apt-get update | ||
|
||
RUN apt-get install -y --fix-missing build-essential libtool \ | ||
autotools-dev autoconf pkg-config libssl-dev \ | ||
libboost-all-dev libprotobuf-dev protobuf-compiler \ | ||
libqrencode-dev autoconf openssl libssl-dev libevent-dev \ | ||
libminiupnpc-dev libzmq5-dev libdb4.8-dev libdb4.8++-dev \ | ||
git jq | ||
|
||
WORKDIR /build | ||
|
||
RUN git clone -n https://github.com/ElementsProject/elements.git . \ | ||
&& git checkout 551483eae50ff2ee48ed17d6b22bb1a26284b635 \ | ||
&& ./autogen.sh \ | ||
&& ./configure --without-gui --disable-tests \ | ||
&& make && make install | ||
|
||
|
||
FROM ubuntu:bionic-20190612 | ||
|
||
COPY --from=builder /usr/lib /usr/lib | ||
COPY --from=builder /usr/local/bin /usr/local/bin | ||
|
||
ADD ./elements.conf /elements/elements.conf |
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,2 @@ | ||
daemon=0 | ||
printtoconsole=1 |