Browse Source

perhaps now it'll work

master
Damian Mee 5 years ago
parent
commit
da295407f8
No known key found for this signature in database GPG Key ID: 2F961EAB8789725D
  1. 6
      .github/workflows/dockerarm.yml
  2. 6
      .github/workflows/dockerimage.yml
  3. 102
      0.18/source-native/Dockerfile
  4. 54
      0.18/source-native/Dockerfile.part2
  5. 106
      0.18/source/Dockerfile
  6. 54
      0.18/source/Dockerfile.part2

6
.github/workflows/dockerarm.yml

@ -7,7 +7,5 @@ jobs:
- uses: actions/checkout@master
- name: Register self-compiled qemu
run: docker run --rm --privileged meedamian/simple-qemu-test:minimal --reset -p yes
- name: Start building the Docker image (1st part)
run: docker images && docker build -t partial-bitcoind-arm -f 0.18/source/Dockerfile 0.18/
- name: Complete the Docker image (2snd part)
run: docker images && docker build -t bitcoind-arm -f 0.18/source/Dockerfile.part2 0.18/
- name: Build Docker image
run: docker build 0.18/ -f 0.18/source/Dockerfile

6
.github/workflows/dockerimage.yml

@ -5,7 +5,5 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Start building the Docker image (1st part)
run: docker images && docker build -t partial-bitcoind-amd64 -f 0.18/source-native/Dockerfile 0.18/
- name: Complete the Docker image (2snd part)
run: docker images && docker build -t bitcoind-amd64 -f 0.18/source-native/Dockerfile.part2 0.18/
- name: Build Docker image
run: docker build 0.18/ -f 0.18/source-native/Dockerfile

102
0.18/source-native/Dockerfile

@ -80,54 +80,54 @@ RUN ./configure LDFLAGS=-L$(ls -d /opt/db*)/lib/ CPPFLAGS=-I$(ls -d /opt/db*)/in
--with-daemon
RUN make
#RUN make check
#RUN make install
#
#RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-cli
#RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-tx
#RUN strip ${BITCOIN_PREFIX}/bin/bitcoind
#RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.a
#RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.so.0.0.0
#
#
## Build stage for compiled artifacts
#FROM arm32v7/alpine:3.10 AS final
#
#LABEL maintainer.0="nolim1t (@nolim1t)" \
# maintainer.1="Damian Mee (@meeDamian)"
#
#ENV LC_ALL=C.UTF-8
#
## Use APK repos over HTTPS. See: https://github.com/gliderlabs/docker-alpine/issues/184
#RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories
#RUN apk --no-cache --update \
# add \
# boost \
# boost-program_options \
# libevent \
# libressl \
# libzmq \
# su-exec
#
#ENV BITCOIN_VERSION=0.18.1
#ENV BITCOIN_PREFIX=/opt/bitcoin-${BITCOIN_VERSION}
#ENV PATH=${BITCOIN_PREFIX}/bin:$PATH
#
#VOLUME /root/.bitcoin
#
#COPY --from=bitcoin-core /opt /opt
#
## REST interface
#EXPOSE 8080
#
## P2P network (mainnet, testnet & regnet respectively)
#EXPOSE 8333 18333 18444
#
## RPC interface (mainnet, testnet & regnet respectively)
#EXPOSE 8332 18332 18443
#
## ZMQ ports (for transactions & blocks respectively)
#EXPOSE 28332 28333
#
#ENTRYPOINT ["bitcoind"]
#CMD ["bitcoind", "-zmqpubrawblock=tcp://0.0.0.0:28332", "-zmqpubrawtx=tcp://0.0.0.0:28333"]
RUN make check
RUN make install
RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-cli
RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-tx
RUN strip ${BITCOIN_PREFIX}/bin/bitcoind
RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.a
RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.so.0.0.0
# Build stage for compiled artifacts
FROM arm32v7/alpine:3.10 AS final
LABEL maintainer.0="nolim1t (@nolim1t)" \
maintainer.1="Damian Mee (@meeDamian)"
ENV LC_ALL=C.UTF-8
# Use APK repos over HTTPS. See: https://github.com/gliderlabs/docker-alpine/issues/184
RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories
RUN apk --no-cache --update \
add \
boost \
boost-program_options \
libevent \
libressl \
libzmq \
su-exec
ENV BITCOIN_VERSION=0.18.1
ENV BITCOIN_PREFIX=/opt/bitcoin-${BITCOIN_VERSION}
ENV PATH=${BITCOIN_PREFIX}/bin:$PATH
VOLUME /root/.bitcoin
COPY --from=bitcoin-core /opt /opt
# REST interface
EXPOSE 8080
# P2P network (mainnet, testnet & regnet respectively)
EXPOSE 8333 18333 18444
# RPC interface (mainnet, testnet & regnet respectively)
EXPOSE 8332 18332 18443
# ZMQ ports (for transactions & blocks respectively)
EXPOSE 28332 28333
ENTRYPOINT ["bitcoind"]
CMD ["bitcoind", "-zmqpubrawblock=tcp://0.0.0.0:28332", "-zmqpubrawtx=tcp://0.0.0.0:28333"]

54
0.18/source-native/Dockerfile.part2

@ -1,54 +0,0 @@
FROM partial-bitcoind-amd64
RUN make check
RUN make install
RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-wallet
RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-cli
RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-tx
RUN strip ${BITCOIN_PREFIX}/bin/bitcoind
RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.a
RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.so.0.0.0
# Build stage for compiled artifacts
FROM alpine:3.10 AS final
LABEL maintainer.0="nolim1t (@nolim1t)" \
maintainer.1="Damian Mee (@meeDamian)"
ENV LC_ALL=C.UTF-8
# Use APK repos over HTTPS. See: https://github.com/gliderlabs/docker-alpine/issues/184
RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories
RUN apk --no-cache --update \
add \
boost \
boost-program_options \
libevent \
libressl \
libzmq \
su-exec
ENV BITCOIN_VERSION=0.18.1
ENV BITCOIN_PREFIX=/opt/bitcoin-${BITCOIN_VERSION}
ENV PATH=${BITCOIN_PREFIX}/bin:$PATH
VOLUME /root/.bitcoin
COPY --from=bitcoin-core /opt /opt
# REST interface
EXPOSE 8080
# P2P network (mainnet, testnet & regnet respectively)
EXPOSE 8333 18333 18444
# RPC interface (mainnet, testnet & regnet respectively)
EXPOSE 8332 18332 18443
# ZMQ ports (for transactions & blocks respectively)
EXPOSE 28332 28333
ENTRYPOINT ["bitcoind"]
CMD ["bitcoind", "-zmqpubrawblock=tcp://0.0.0.0:28332", "-zmqpubrawtx=tcp://0.0.0.0:28333"]

106
0.18/source/Dockerfile

@ -2,7 +2,7 @@
FROM arm32v7/alpine:3.10 AS bitcoin-core
# fetch already built berkeleydb
COPY --from=lncm/berkeleydb:db-4.8.30.NC-linux-arm /opt /opt
COPY --from=lncm/berkeleydb:db-4.8.30.NC /opt /opt
# Use APK repos over HTTPS. See: https://github.com/gliderlabs/docker-alpine/issues/184
@ -69,7 +69,7 @@ RUN sed -i '/AX_PROG_CC_FOR_BUILD/a\AR_FLAGS=cr' src/secp256k1/configure.ac
RUN sed -i s:sys/fcntl.h:fcntl.h: src/compat.h
RUN ./autogen.sh
RUN ./configure LDFLAGS=-L`ls -d /opt/db*`/lib/ CPPFLAGS=-I`ls -d /opt/db*`/include/ \
RUN ./configure LDFLAGS=-L$(ls -d /opt/db*)/lib/ CPPFLAGS=-I$(ls -d /opt/db*)/include/ \
--prefix=${BITCOIN_PREFIX} \
--mandir=/usr/share/man \
--disable-ccache \
@ -79,54 +79,54 @@ RUN ./configure LDFLAGS=-L`ls -d /opt/db*`/lib/ CPPFLAGS=-I`ls -d /opt/db*`/incl
--with-daemon
RUN make
#RUN make check
#RUN make install
#
#RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-cli
#RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-tx
#RUN strip ${BITCOIN_PREFIX}/bin/bitcoind
#RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.a
#RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.so.0.0.0
#
#
## Build stage for compiled artifacts
#FROM arm32v7/alpine:3.10 AS final
#
#LABEL maintainer.0="nolim1t (@nolim1t)" \
# maintainer.1="Damian Mee (@meeDamian)"
#
#ENV LC_ALL=C.UTF-8
#
## Use APK repos over HTTPS. See: https://github.com/gliderlabs/docker-alpine/issues/184
#RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories
#RUN apk --no-cache --update \
# add \
# boost \
# boost-program_options \
# libevent \
# libressl \
# libzmq \
# su-exec
#
#ENV BITCOIN_VERSION=0.18.1
#ENV BITCOIN_PREFIX=/opt/bitcoin-${BITCOIN_VERSION}
#ENV PATH=${BITCOIN_PREFIX}/bin:$PATH
#
#VOLUME /root/.bitcoin
#
#COPY --from=bitcoin-core /opt /opt
#
## REST interface
#EXPOSE 8080
#
## P2P network (mainnet, testnet & regnet respectively)
#EXPOSE 8333 18333 18444
#
## RPC interface (mainnet, testnet & regnet respectively)
#EXPOSE 8332 18332 18443
#
## ZMQ ports (for transactions & blocks respectively)
#EXPOSE 28332 28333
#
#ENTRYPOINT ["bitcoind"]
#CMD ["bitcoind", "-zmqpubrawblock=tcp://0.0.0.0:28332", "-zmqpubrawtx=tcp://0.0.0.0:28333"]
RUN make check
RUN make install
RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-cli
RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-tx
RUN strip ${BITCOIN_PREFIX}/bin/bitcoind
RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.a
RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.so.0.0.0
# Build stage for compiled artifacts
FROM arm32v7/alpine:3.10 AS final
LABEL maintainer.0="nolim1t (@nolim1t)" \
maintainer.1="Damian Mee (@meeDamian)"
ENV LC_ALL=C.UTF-8
# Use APK repos over HTTPS. See: https://github.com/gliderlabs/docker-alpine/issues/184
RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories
RUN apk --no-cache --update \
add \
boost \
boost-program_options \
libevent \
libressl \
libzmq \
su-exec
ENV BITCOIN_VERSION=0.18.1
ENV BITCOIN_PREFIX=/opt/bitcoin-${BITCOIN_VERSION}
ENV PATH=${BITCOIN_PREFIX}/bin:$PATH
VOLUME /root/.bitcoin
COPY --from=bitcoin-core /opt /opt
# REST interface
EXPOSE 8080
# P2P network (mainnet, testnet & regnet respectively)
EXPOSE 8333 18333 18444
# RPC interface (mainnet, testnet & regnet respectively)
EXPOSE 8332 18332 18443
# ZMQ ports (for transactions & blocks respectively)
EXPOSE 28332 28333
ENTRYPOINT ["bitcoind"]
CMD ["bitcoind", "-zmqpubrawblock=tcp://0.0.0.0:28332", "-zmqpubrawtx=tcp://0.0.0.0:28333"]

54
0.18/source/Dockerfile.part2

@ -1,54 +0,0 @@
FROM partial-bitcoind-arm
RUN make check
RUN make install
RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-wallet
RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-cli
RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-tx
RUN strip ${BITCOIN_PREFIX}/bin/bitcoind
RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.a
RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.so.0.0.0
# Build stage for compiled artifacts
FROM arm32v7/alpine:3.10 AS final
LABEL maintainer.0="nolim1t (@nolim1t)" \
maintainer.1="Damian Mee (@meeDamian)"
ENV LC_ALL=C.UTF-8
# Use APK repos over HTTPS. See: https://github.com/gliderlabs/docker-alpine/issues/184
RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories
RUN apk --no-cache --update \
add \
boost \
boost-program_options \
libevent \
libressl \
libzmq \
su-exec
ENV BITCOIN_VERSION=0.18.1
ENV BITCOIN_PREFIX=/opt/bitcoin-${BITCOIN_VERSION}
ENV PATH=${BITCOIN_PREFIX}/bin:$PATH
VOLUME /root/.bitcoin
COPY --from=bitcoin-core /opt /opt
# REST interface
EXPOSE 8080
# P2P network (mainnet, testnet & regnet respectively)
EXPOSE 8333 18333 18444
# RPC interface (mainnet, testnet & regnet respectively)
EXPOSE 8332 18332 18443
# ZMQ ports (for transactions & blocks respectively)
EXPOSE 28332 28333
ENTRYPOINT ["bitcoind"]
CMD ["bitcoind", "-zmqpubrawblock=tcp://0.0.0.0:28332", "-zmqpubrawtx=tcp://0.0.0.0:28333"]
Loading…
Cancel
Save