Last active
February 15, 2018 02:58
-
-
Save nyanloutre/9015e60a00a5dfcc113d1d32386ae382 to your computer and use it in GitHub Desktop.
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
FROM alpine:3.5 | |
ARG BERKELEYDB_VERSION=4.8.30 | |
ARG BITCOIN_UNLIMITED_VERSION=0.12.1c | |
WORKDIR /srv/src | |
RUN apk add --no-cache --virtual build-dependencies git build-base \ | |
automake autoconf libtool boost-dev openssl-dev libevent-dev && \ | |
wget http://download.oracle.com/berkeley-db/db-${BERKELEYDB_VERSION}.tar.gz && \ | |
tar -xzf /tmp/build/db-${BERKELEYDB_VERSION}.tar.gz && \ | |
cd db-${BERKELEYDB_VERSION}/build_unix && \ | |
../dist/configure --enable-cxx && \ | |
make install && \ | |
cd /srv/src && \ | |
git clone https://github.com/BitcoinUnlimited/BitcoinUnlimited.git && \ | |
git checkout tags/bu${BITCOIN_UNLIMITED_VERSION} && \ | |
cd BitcoinUnlimited && \ | |
./autogen.sh && \ | |
./configure && \ | |
make && \ | |
make install && \ | |
apk del build-dependencies |
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
FROM debian:jessie | |
ARG VERSION=0.12.1 | |
ARG SHA256HASH=34de171ac1b48b0780d68f3844c9fd2e8bfe6a7780b55e1f012067c2440ebd8a | |
RUN apt-get update && \ | |
apt-get install -y wget ca-certificates && \ | |
apt-get clean && \ | |
wget https://www.bitcoinunlimited.info/downloads/bitcoinUnlimited-${VERSION}-linux64.tar.gz && \ | |
echo "${SHA256HASH} bitcoinUnlimited-${VERSION}-linux64.tar.gz" | sha256sum -c - && \ | |
tar -xzvf bitcoinUnlimited-${VERSION}-linux64.tar.gz -C /usr/local --strip-components=1 && \ | |
rm bitcoinUnlimited-${VERSION}-linux64.tar.gz | |
VOLUME /var/bitcoin | |
EXPOSE 8333 | |
ENTRYPOINT ["bitcoind","-printtoconsole","-datadir=/var/bitcoin","-dbcache=4000"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, thanks for sharing this. Are both versions necessary or is "Bitcoin Unlimited Docker" enough?