Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 12 additions & 26 deletions build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,36 +1,22 @@
FROM alpine as binary
FROM debian:bullseye-slim as binary

ARG VERSION=0.19.0.1
ARG VERSION=0.20.0

ENV FILENAME bitcoin-${VERSION}-x86_64-linux-gnu.tar.gz
ENV DOWNLOAD_URL https://bitcoin.org/bin/bitcoin-core-${VERSION}/${FILENAME}
ENV SHA256SUM 732cc96ae2e5e25603edf76b8c8af976fe518dd925f7e674710c6c8ee5189204
ENV SHA256SUM 35ec10f87b6bc1e44fd9cd1157e5dfa483eaf14d7d9a9c274774539e7824c427

ADD $DOWNLOAD_URL /$FILENAME
RUN if [ x"$( sha256sum /${FILENAME} | awk '{print $1}' )" != x"${SHA256SUM}" ]; then \
rm -f /$FILENAME; \
echo "Checksum verification failed."; \
exit 1; \
else \
tar xzvf /$FILENAME; \
mv /bitcoin-${VERSION} /bitcoin; \
fi

FROM alpine AS final

ARG GLIBC_VERSION=2.30-r0

RUN apk update \
&& apk --no-cache add wget bash ca-certificates \
&& wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub \
&& wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk \
&& wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-bin-${GLIBC_VERSION}.apk \
&& apk --no-cache add glibc-${GLIBC_VERSION}.apk \
&& apk --no-cache add glibc-bin-${GLIBC_VERSION}.apk \
&& rm -rf /glibc-${GLIBC_VERSION}.apk \
&& rm -rf /glibc-bin-${GLIBC_VERSION}.apk \
&& mkdir /root/.bitcoin \
&& apk del wget ca-certificates
rm -f /$FILENAME; \
echo "Checksum verification failed."; \
exit 1; \
else \
tar xzvf /$FILENAME; \
mv /bitcoin-${VERSION} /bitcoin; \
fi

FROM debian:bullseye-slim AS final

EXPOSE 8332 8333 18332 18333 28332 28333

Expand Down
3 changes: 2 additions & 1 deletion build/bin/docker_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -euo pipefail

btc_prune=${BTC_PRUNE:-0}
if [ $btc_prune -ne 0 ] ; then
if [ $btc_prune -ne 0 ]; then
BTC_TXINDEX=0
fi

Expand All @@ -14,6 +14,7 @@ BITCOIN_CONF=${BITCOIN_DIR}/bitcoin.conf
# non-mining node.

#if [ ! -e "${BITCOIN_CONF}" ]; then
mkdir -p ${BITCOIN_DIR}
tee -a >${BITCOIN_CONF} <<EOF

# For documentation on the config file, see
Expand Down
15 changes: 5 additions & 10 deletions dappnode_package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bitcoin.dnp.dappnode.eth",
"version": "0.1.5",
"upstreamVersion": "0.19.0.1",
"version": "0.1.6",
"upstreamVersion": "0.20.0",
"shortDescription": "Support the Bitcoin network, run your own node",
"description": "The Bitcoin Core daemon. Bitcoind is a program that implements the Bitcoin protocol for remote procedure call (RPC) use.",
"type": "service",
Expand All @@ -12,13 +12,8 @@
"Eduardo Antuña <eduadiez@gmail.com> (https://github.com/eduadiez)",
"Loco del Bitcoin <ellocodelbitcoin@gmail.com>"
],
"categories": [
"Blockchain"
],
"keywords": [
"bitcoin",
"btc"
],
"categories": ["Blockchain"],
"keywords": ["bitcoin", "btc"],
"links": {
"homepage": "https://github.com/dappnode/DAppNodePackage-bitcoin#readme"
},
Expand All @@ -30,4 +25,4 @@
"url": "https://github.com/dappnode/DAppNodePackage-bitcoin/issues"
},
"license": "GPL-3.0"
}
}
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.4'
services:
bitcoin.dnp.dappnode.eth:
image: 'bitcoin.dnp.dappnode.eth:0.1.5'
image: 'bitcoin.dnp.dappnode.eth:0.1.6'
build: ./build
volumes:
- 'bitcoin_data:/root/.bitcoin'
Expand Down
10 changes: 10 additions & 0 deletions releases.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"0.1.5": {
"hash": "/ipfs/QmWzNqeGK7BZ2L3J5yeA6FmTPscuub2qYiWKoQo4ia8ZVJ",
"type": "directory",
"uploadedTo": {
"dappnode": "Mon, 25 Nov 2019 16:12:52 GMT"
},
"link": "http://my.dappnode/#/sdk/publish/r=bitcoin.dnp.dappnode.eth&v=0.1.5&h=%2Fipfs%2FQmWzNqeGK7BZ2L3J5yeA6FmTPscuub2qYiWKoQo4ia8ZVJ"
}
}