Skip to content

Commit

Permalink
base-image docker files: use parallel build
Browse files Browse the repository at this point in the history
  • Loading branch information
SwimmingTiger committed Feb 3, 2020
1 parent 00568fb commit 28ad61f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docker/btcpool/base-image/Dockerfile.bch
Expand Up @@ -61,7 +61,7 @@ RUN cd /tmp && \
RUN cd /tmp && wget https://github.com/edenhill/librdkafka/archive/0.9.1.tar.gz && \
[ $(sha256sum 0.9.1.tar.gz | cut -d " " -f 1) = "5ad57e0c9a4ec8121e19f13f05bacc41556489dfe8f46ff509af567fdee98d82" ] && \
tar zxf 0.9.1.tar.gz && cd librdkafka-0.9.1 && \
./configure && make && make install && rm -rf /tmp/*
./configure && make -j${BUILD_JOBS} && make install && rm -rf /tmp/*

# Remove dynamic libraries of librdkafka
# In this way, the constructed deb package will
Expand All @@ -77,7 +77,7 @@ RUN mkdir -p /work/blockchain && cd /work/blockchain && wget https://github.com/
make -j${BUILD_JOBS} -C src libbitcoin_common.a libbitcoin_consensus.a libbitcoin_util.a crypto/libbitcoin_crypto_base.a crypto/libbitcoin_crypto_sse41.a crypto/libbitcoin_crypto_shani.a crypto/libbitcoin_crypto_avx2.a && \
cp src/config/bitcoin-config.h /work/blockchain/src/config/ && cp src/libbitcoin_*.a /work/blockchain/src/ && cp src/crypto/libbitcoin_crypto_*.a /work/blockchain/src/crypto/ && \
cd /work/blockchain/src/secp256k1 && ./autogen.sh && mkdir -p /tmp/secp256k1 && \
cd /tmp/secp256k1 && /work/blockchain/src/secp256k1/configure --enable-module-recovery && make && \
cd /tmp/secp256k1 && /work/blockchain/src/secp256k1/configure --enable-module-recovery && make -j${BUILD_JOBS} && \
mkdir /work/blockchain/src/secp256k1/.libs && cp .libs/libsecp256k1.a /work/blockchain/src/secp256k1/.libs/ && rm -rf /tmp/*

# For forward compatible
Expand Down
6 changes: 3 additions & 3 deletions docker/btcpool/base-image/Dockerfile.sbtc
Expand Up @@ -61,7 +61,7 @@ RUN cd /tmp && \
RUN cd /tmp && wget https://github.com/edenhill/librdkafka/archive/0.9.1.tar.gz && \
[ $(sha256sum 0.9.1.tar.gz | cut -d " " -f 1) = "5ad57e0c9a4ec8121e19f13f05bacc41556489dfe8f46ff509af567fdee98d82" ] && \
tar zxvf 0.9.1.tar.gz && cd librdkafka-0.9.1 && \
./configure && make && make install && rm -rf /tmp/*
./configure && make -j${BUILD_JOBS} && make install && rm -rf /tmp/*

# Remove dynamic libraries of librdkafka
# In this way, the constructed deb package will
Expand All @@ -71,8 +71,8 @@ RUN cd /usr/local/lib && \

# Build blockchain
RUN mkdir /work && git clone https://github.com/superbitcoin/SuperBitcoin.git --branch v0.16.2 --depth 1 /work/blockchain && \
cd /work/blockchain && ./autogen.sh && ./configure --with-gui=no --disable-wallet --disable-tests --disable-bench && make && \
cd /work/blockchain/src/secp256k1 && ./autogen.sh && ./configure --enable-module-recovery && make
cd /work/blockchain && ./autogen.sh && ./configure --with-gui=no --disable-wallet --disable-tests --disable-bench && make -j${BUILD_JOBS} && \
cd /work/blockchain/src/secp256k1 && ./autogen.sh && ./configure --enable-module-recovery && make -j${BUILD_JOBS}

# For forward compatible
RUN ln -s /work/blockchain /work/bitcoin
Expand Down
6 changes: 3 additions & 3 deletions docker/btcpool/base-image/Dockerfile.ubtc
Expand Up @@ -62,7 +62,7 @@ RUN cd /tmp && \
RUN cd /tmp && wget https://github.com/edenhill/librdkafka/archive/0.9.1.tar.gz && \
[ $(sha256sum 0.9.1.tar.gz | cut -d " " -f 1) = "5ad57e0c9a4ec8121e19f13f05bacc41556489dfe8f46ff509af567fdee98d82" ] && \
tar zxf 0.9.1.tar.gz && cd librdkafka-0.9.1 && \
./configure && make && make install && rm -rf /tmp/*
./configure && make -j${BUILD_JOBS} && make install && rm -rf /tmp/*

# Remove dynamic libraries of librdkafka
# In this way, the constructed deb package will
Expand All @@ -72,8 +72,8 @@ RUN cd /usr/local/lib && \

# Build blockchain
RUN mkdir /work && git clone https://github.com/btccom/UnitedBitcoin.git --branch v2.5.0.1-1 --depth 1 /work/blockchain && \
cd /work/blockchain && ./autogen.sh && ./configure --with-incompatible-bdb --with-gui=no --disable-tests --disable-bench && make && \
cd /work/blockchain/src/secp256k1 && ./autogen.sh && ./configure --enable-module-recovery && make
cd /work/blockchain && ./autogen.sh && ./configure --with-incompatible-bdb --with-gui=no --disable-tests --disable-bench && make -j${BUILD_JOBS} && \
cd /work/blockchain/src/secp256k1 && ./autogen.sh && ./configure --enable-module-recovery && make -j${BUILD_JOBS}

# For forward compatible
RUN ln -s /work/blockchain /work/bitcoin
Expand Down

0 comments on commit 28ad61f

Please sign in to comment.