From 7a6a638b28d028f4e41ae5fa33c9b28e5bf22684 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Mon, 11 Apr 2016 16:13:18 +0200 Subject: [PATCH 1/3] tag build with makefile --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f6e8c8d..f8d0ee6 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ default: build build: kill - docker build -t sneak/bitcoind . + docker build -t sneak/bitcoind:0.12.0 . run: kill - docker run --name sneak-bitcoind -d sneak/bitcoind + docker run --name sneak-bitcoind -d sneak/bitcoind:0.12.0 docker logs -f sneak-bitcoind kill: From 5074273936930f967de9925118adeef3f0c4fdbf Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Mon, 11 Apr 2016 17:03:55 +0200 Subject: [PATCH 2/3] don't remove boost libs after build --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0bfc959..35ed1ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,8 +28,6 @@ RUN cd /usr/local/src/bitcoin && \ RUN apt-get remove -y \ build-essential libtool autotools-dev automake pkg-config libssl-dev \ libevent-dev bsdmainutils libzmq3-dev \ - libboost-system-dev libboost-filesystem-dev libboost-chrono-dev \ - libboost-program-options-dev libboost-test-dev libboost-thread-dev \ libminiupnpc-dev git && \ apt-get autoremove -y && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* From 7cdefa84b50255dc3c7fc502ada6ccdabd412982 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Mon, 11 Apr 2016 17:51:16 +0200 Subject: [PATCH 3/3] seems to work now --- Dockerfile | 7 +++---- bitcoin.run | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 35ed1ec..b8b7da9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,15 +20,14 @@ RUN cd /usr/local/src/bitcoin && \ git checkout $BITCOIND_REV && \ ./autogen.sh && \ ./configure --disable-wallet --enable-hardening && \ - make -j10 && \ + make -j2 && \ make install && \ cd / && \ rm -rf /usr/local/src/bitcoin RUN apt-get remove -y \ - build-essential libtool autotools-dev automake pkg-config libssl-dev \ - libevent-dev bsdmainutils libzmq3-dev \ - libminiupnpc-dev git && \ + build-essential libtool autotools-dev automake \ + pkg-config bsdmainutils git && \ apt-get autoremove -y && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ENV HOME /var/lib/bitcoin diff --git a/bitcoin.run b/bitcoin.run index b06439c..53f81be 100644 --- a/bitcoin.run +++ b/bitcoin.run @@ -16,8 +16,8 @@ exec chpst -ubitcoin \ bitcoind \ -printtoconsole \ -disablewallet \ - -datadir $HOME \ - -conf $HOME/bitcoin.conf \ + -datadir=/var/lib/bitcoin \ + -conf=/var/lib/bitcoin/bitcoin.conf \ -rpcallowip=::/0 \ $BITCOIND_EXTRA_OPTS \ 2>&1