Skip to content

Instantly share code, notes, and snippets.

@nyanloutre
Last active February 15, 2018 02:58
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nyanloutre/9015e60a00a5dfcc113d1d32386ae382 to your computer and use it in GitHub Desktop.
Save nyanloutre/9015e60a00a5dfcc113d1d32386ae382 to your computer and use it in GitHub Desktop.
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
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"]
@tuxayo
Copy link

tuxayo commented Mar 28, 2017

Hi, thanks for sharing this. Are both versions necessary or is "Bitcoin Unlimited Docker" enough?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment