ruimarinho / docker-bitcoin-core

A bitcoin-core docker image
https://hub.docker.com/r/ruimarinho/bitcoin-core/
MIT License
367 stars 213 forks source link

Added bitcoin-core 22.0 #124

Closed Silvenga closed 2 years ago

Silvenga commented 2 years ago

Bitcoin Core changed how verification occurs.

So my changes from previous versions:

See https://github.com/bitcoin/bitcoin/issues/22982 for context.

schildbach commented 2 years ago

I tested this PR, but it fails building the Debian docker image. Here is my console log:

$ docker build .
Sending build context to Docker daemon  13.82kB
Step 1/14 : FROM debian:bullseye-slim
bullseye-slim: Pulling from library/debian
7d63c13d9b9b: Pull complete 
Digest: sha256:dddc0f5f01db7ca3599fd8cf9821ffc4d09ec9d7d15e49019e73228ac1eee7f9
Status: Downloaded newer image for debian:bullseye-slim
 ---> dd984c2cf05c
Step 2/14 : LABEL maintainer.0="João Fonseca (@joaopaulofonseca)"   maintainer.1="Pedro Branco (@pedrobranco)"   maintainer.2="Rui Marinho (@ruimarinho)"
 ---> Running in 3ef40c7e895a
Removing intermediate container 3ef40c7e895a
 ---> baeb157a6b61
Step 3/14 : RUN useradd -r bitcoin   && apt-get update -y   && apt-get install -y curl gnupg gosu   && apt-get clean   && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
 ---> Running in 555a0cbdaee0
Get:1 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
Get:2 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB]
Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [47.4 kB]
Get:5 http://deb.debian.org/debian bullseye/main amd64 Packages [8180 kB]
Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [2300 B]
Fetched 8429 kB in 3s (3110 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  ca-certificates dirmngr gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client
  gpg-wks-server gpgconf gpgsm libassuan0 libbrotli1 libcurl4 libgpm2 libksba8
  libldap-2.4-2 libldap-common libncursesw6 libnghttp2-14 libnpth0 libpsl5
  libreadline8 librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db
  libsqlite3-0 libssh2-1 openssl pinentry-curses publicsuffix readline-common
Suggested packages:
  dbus-user-session libpam-systemd pinentry-gnome3 tor parcimonie xloadimage
  scdaemon gpm libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal
  libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql pinentry-doc
  readline-doc
The following NEW packages will be installed:
  ca-certificates curl dirmngr gnupg gnupg-l10n gnupg-utils gosu gpg gpg-agent
  gpg-wks-client gpg-wks-server gpgconf gpgsm libassuan0 libbrotli1 libcurl4
  libgpm2 libksba8 libldap-2.4-2 libldap-common libncursesw6 libnghttp2-14
  libnpth0 libpsl5 libreadline8 librtmp1 libsasl2-2 libsasl2-modules
  libsasl2-modules-db libsqlite3-0 libssh2-1 openssl pinentry-curses
  publicsuffix readline-common
0 upgraded, 35 newly installed, 0 to remove and 0 not upgraded.
Need to get 12.6 MB of archives.
After this operation, 26.8 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 readline-common all 8.1-1 [73.7 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 libreadline8 amd64 8.1-1 [169 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 openssl amd64 1.1.1k-1+deb11u1 [851 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 ca-certificates all 20210119 [158 kB]
Get:5 http://deb.debian.org/debian bullseye/main amd64 libbrotli1 amd64 1.0.9-2+b2 [279 kB]
Get:6 http://deb.debian.org/debian bullseye/main amd64 libsasl2-modules-db amd64 2.1.27+dfsg-2.1 [69.1 kB]
Get:7 http://deb.debian.org/debian bullseye/main amd64 libsasl2-2 amd64 2.1.27+dfsg-2.1 [106 kB]
Get:8 http://deb.debian.org/debian bullseye/main amd64 libldap-2.4-2 amd64 2.4.57+dfsg-3 [232 kB]
Get:9 http://deb.debian.org/debian bullseye/main amd64 libnghttp2-14 amd64 1.43.0-1 [77.1 kB]
Get:10 http://deb.debian.org/debian bullseye/main amd64 libpsl5 amd64 0.21.0-1.2 [57.3 kB]
Get:11 http://deb.debian.org/debian bullseye/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-2+b2 [60.8 kB]
Get:12 http://deb.debian.org/debian bullseye/main amd64 libssh2-1 amd64 1.9.0-2 [156 kB]
Get:13 http://deb.debian.org/debian bullseye/main amd64 libcurl4 amd64 7.74.0-1.3+b1 [341 kB]
Get:14 http://deb.debian.org/debian bullseye/main amd64 curl amd64 7.74.0-1.3+b1 [267 kB]
Get:15 http://deb.debian.org/debian bullseye/main amd64 libassuan0 amd64 2.5.3-7.1 [50.5 kB]
Get:16 http://deb.debian.org/debian bullseye/main amd64 gpgconf amd64 2.2.27-2 [547 kB]
Get:17 http://deb.debian.org/debian bullseye/main amd64 libksba8 amd64 1.5.0-3 [123 kB]
Get:18 http://deb.debian.org/debian bullseye/main amd64 libnpth0 amd64 1.6-3 [19.0 kB]
Get:19 http://deb.debian.org/debian bullseye/main amd64 dirmngr amd64 2.2.27-2 [762 kB]
Get:20 http://deb.debian.org/debian bullseye/main amd64 gnupg-l10n all 2.2.27-2 [1084 kB]
Get:21 http://deb.debian.org/debian bullseye/main amd64 gnupg-utils amd64 2.2.27-2 [905 kB]
Get:22 http://deb.debian.org/debian bullseye/main amd64 libsqlite3-0 amd64 3.34.1-3 [797 kB]
Get:23 http://deb.debian.org/debian bullseye/main amd64 gpg amd64 2.2.27-2 [927 kB]
Get:24 http://deb.debian.org/debian bullseye/main amd64 libncursesw6 amd64 6.2+20201114-2 [132 kB]
Get:25 http://deb.debian.org/debian bullseye/main amd64 pinentry-curses amd64 1.1.0-4 [64.9 kB]
Get:26 http://deb.debian.org/debian bullseye/main amd64 gpg-agent amd64 2.2.27-2 [669 kB]
Get:27 http://deb.debian.org/debian bullseye/main amd64 gpg-wks-client amd64 2.2.27-2 [523 kB]
Get:28 http://deb.debian.org/debian bullseye/main amd64 gpg-wks-server amd64 2.2.27-2 [516 kB]
Get:29 http://deb.debian.org/debian bullseye/main amd64 gpgsm amd64 2.2.27-2 [645 kB]
Get:30 http://deb.debian.org/debian bullseye/main amd64 gnupg all 2.2.27-2 [825 kB]
Get:31 http://deb.debian.org/debian bullseye/main amd64 gosu amd64 1.12-1+b6 [743 kB]
Get:32 http://deb.debian.org/debian bullseye/main amd64 libgpm2 amd64 1.20.7-8 [35.6 kB]
Get:33 http://deb.debian.org/debian bullseye/main amd64 libldap-common all 2.4.57+dfsg-3 [95.9 kB]
Get:34 http://deb.debian.org/debian bullseye/main amd64 libsasl2-modules amd64 2.1.27+dfsg-2.1 [104 kB]
Get:35 http://deb.debian.org/debian bullseye/main amd64 publicsuffix all 20210108.1309-1 [121 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 12.6 MB in 1s (10.6 MB/s)
Selecting previously unselected package readline-common.
(Reading database ... 6653 files and directories currently installed.)
Preparing to unpack .../00-readline-common_8.1-1_all.deb ...
Unpacking readline-common (8.1-1) ...
Selecting previously unselected package libreadline8:amd64.
Preparing to unpack .../01-libreadline8_8.1-1_amd64.deb ...
Unpacking libreadline8:amd64 (8.1-1) ...
Selecting previously unselected package openssl.
Preparing to unpack .../02-openssl_1.1.1k-1+deb11u1_amd64.deb ...
Unpacking openssl (1.1.1k-1+deb11u1) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../03-ca-certificates_20210119_all.deb ...
Unpacking ca-certificates (20210119) ...
Selecting previously unselected package libbrotli1:amd64.
Preparing to unpack .../04-libbrotli1_1.0.9-2+b2_amd64.deb ...
Unpacking libbrotli1:amd64 (1.0.9-2+b2) ...
Selecting previously unselected package libsasl2-modules-db:amd64.
Preparing to unpack .../05-libsasl2-modules-db_2.1.27+dfsg-2.1_amd64.deb ...
Unpacking libsasl2-modules-db:amd64 (2.1.27+dfsg-2.1) ...
Selecting previously unselected package libsasl2-2:amd64.
Preparing to unpack .../06-libsasl2-2_2.1.27+dfsg-2.1_amd64.deb ...
Unpacking libsasl2-2:amd64 (2.1.27+dfsg-2.1) ...
Selecting previously unselected package libldap-2.4-2:amd64.
Preparing to unpack .../07-libldap-2.4-2_2.4.57+dfsg-3_amd64.deb ...
Unpacking libldap-2.4-2:amd64 (2.4.57+dfsg-3) ...
Selecting previously unselected package libnghttp2-14:amd64.
Preparing to unpack .../08-libnghttp2-14_1.43.0-1_amd64.deb ...
Unpacking libnghttp2-14:amd64 (1.43.0-1) ...
Selecting previously unselected package libpsl5:amd64.
Preparing to unpack .../09-libpsl5_0.21.0-1.2_amd64.deb ...
Unpacking libpsl5:amd64 (0.21.0-1.2) ...
Selecting previously unselected package librtmp1:amd64.
Preparing to unpack .../10-librtmp1_2.4+20151223.gitfa8646d.1-2+b2_amd64.deb ...
Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2+b2) ...
Selecting previously unselected package libssh2-1:amd64.
Preparing to unpack .../11-libssh2-1_1.9.0-2_amd64.deb ...
Unpacking libssh2-1:amd64 (1.9.0-2) ...
Selecting previously unselected package libcurl4:amd64.
Preparing to unpack .../12-libcurl4_7.74.0-1.3+b1_amd64.deb ...
Unpacking libcurl4:amd64 (7.74.0-1.3+b1) ...
Selecting previously unselected package curl.
Preparing to unpack .../13-curl_7.74.0-1.3+b1_amd64.deb ...
Unpacking curl (7.74.0-1.3+b1) ...
Selecting previously unselected package libassuan0:amd64.
Preparing to unpack .../14-libassuan0_2.5.3-7.1_amd64.deb ...
Unpacking libassuan0:amd64 (2.5.3-7.1) ...
Selecting previously unselected package gpgconf.
Preparing to unpack .../15-gpgconf_2.2.27-2_amd64.deb ...
Unpacking gpgconf (2.2.27-2) ...
Selecting previously unselected package libksba8:amd64.
Preparing to unpack .../16-libksba8_1.5.0-3_amd64.deb ...
Unpacking libksba8:amd64 (1.5.0-3) ...
Selecting previously unselected package libnpth0:amd64.
Preparing to unpack .../17-libnpth0_1.6-3_amd64.deb ...
Unpacking libnpth0:amd64 (1.6-3) ...
Selecting previously unselected package dirmngr.
Preparing to unpack .../18-dirmngr_2.2.27-2_amd64.deb ...
Unpacking dirmngr (2.2.27-2) ...
Selecting previously unselected package gnupg-l10n.
Preparing to unpack .../19-gnupg-l10n_2.2.27-2_all.deb ...
Unpacking gnupg-l10n (2.2.27-2) ...
Selecting previously unselected package gnupg-utils.
Preparing to unpack .../20-gnupg-utils_2.2.27-2_amd64.deb ...
Unpacking gnupg-utils (2.2.27-2) ...
Selecting previously unselected package libsqlite3-0:amd64.
Preparing to unpack .../21-libsqlite3-0_3.34.1-3_amd64.deb ...
Unpacking libsqlite3-0:amd64 (3.34.1-3) ...
Selecting previously unselected package gpg.
Preparing to unpack .../22-gpg_2.2.27-2_amd64.deb ...
Unpacking gpg (2.2.27-2) ...
Selecting previously unselected package libncursesw6:amd64.
Preparing to unpack .../23-libncursesw6_6.2+20201114-2_amd64.deb ...
Unpacking libncursesw6:amd64 (6.2+20201114-2) ...
Selecting previously unselected package pinentry-curses.
Preparing to unpack .../24-pinentry-curses_1.1.0-4_amd64.deb ...
Unpacking pinentry-curses (1.1.0-4) ...
Selecting previously unselected package gpg-agent.
Preparing to unpack .../25-gpg-agent_2.2.27-2_amd64.deb ...
Unpacking gpg-agent (2.2.27-2) ...
Selecting previously unselected package gpg-wks-client.
Preparing to unpack .../26-gpg-wks-client_2.2.27-2_amd64.deb ...
Unpacking gpg-wks-client (2.2.27-2) ...
Selecting previously unselected package gpg-wks-server.
Preparing to unpack .../27-gpg-wks-server_2.2.27-2_amd64.deb ...
Unpacking gpg-wks-server (2.2.27-2) ...
Selecting previously unselected package gpgsm.
Preparing to unpack .../28-gpgsm_2.2.27-2_amd64.deb ...
Unpacking gpgsm (2.2.27-2) ...
Selecting previously unselected package gnupg.
Preparing to unpack .../29-gnupg_2.2.27-2_all.deb ...
Unpacking gnupg (2.2.27-2) ...
Selecting previously unselected package gosu.
Preparing to unpack .../30-gosu_1.12-1+b6_amd64.deb ...
Unpacking gosu (1.12-1+b6) ...
Selecting previously unselected package libgpm2:amd64.
Preparing to unpack .../31-libgpm2_1.20.7-8_amd64.deb ...
Unpacking libgpm2:amd64 (1.20.7-8) ...
Selecting previously unselected package libldap-common.
Preparing to unpack .../32-libldap-common_2.4.57+dfsg-3_all.deb ...
Unpacking libldap-common (2.4.57+dfsg-3) ...
Selecting previously unselected package libsasl2-modules:amd64.
Preparing to unpack .../33-libsasl2-modules_2.1.27+dfsg-2.1_amd64.deb ...
Unpacking libsasl2-modules:amd64 (2.1.27+dfsg-2.1) ...
Selecting previously unselected package publicsuffix.
Preparing to unpack .../34-publicsuffix_20210108.1309-1_all.deb ...
Unpacking publicsuffix (20210108.1309-1) ...
Setting up libksba8:amd64 (1.5.0-3) ...
Setting up libpsl5:amd64 (0.21.0-1.2) ...
Setting up libgpm2:amd64 (1.20.7-8) ...
Setting up libbrotli1:amd64 (1.0.9-2+b2) ...
Setting up libsqlite3-0:amd64 (3.34.1-3) ...
Setting up libsasl2-modules:amd64 (2.1.27+dfsg-2.1) ...
Setting up libnghttp2-14:amd64 (1.43.0-1) ...
Setting up libnpth0:amd64 (1.6-3) ...
Setting up libassuan0:amd64 (2.5.3-7.1) ...
Setting up libldap-common (2.4.57+dfsg-3) ...
Setting up libsasl2-modules-db:amd64 (2.1.27+dfsg-2.1) ...
Setting up gnupg-l10n (2.2.27-2) ...
Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2+b2) ...
Setting up gosu (1.12-1+b6) ...
Setting up libncursesw6:amd64 (6.2+20201114-2) ...
Setting up libsasl2-2:amd64 (2.1.27+dfsg-2.1) ...
Setting up libssh2-1:amd64 (1.9.0-2) ...
Setting up openssl (1.1.1k-1+deb11u1) ...
Setting up readline-common (8.1-1) ...
Setting up publicsuffix (20210108.1309-1) ...
Setting up pinentry-curses (1.1.0-4) ...
Setting up libreadline8:amd64 (8.1-1) ...
Setting up libldap-2.4-2:amd64 (2.4.57+dfsg-3) ...
Setting up ca-certificates (20210119) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
Updating certificates in /etc/ssl/certs...
129 added, 0 removed; done.
Setting up gpgconf (2.2.27-2) ...
Setting up libcurl4:amd64 (7.74.0-1.3+b1) ...
Setting up curl (7.74.0-1.3+b1) ...
Setting up gpg (2.2.27-2) ...
Setting up gnupg-utils (2.2.27-2) ...
Setting up gpg-agent (2.2.27-2) ...
Setting up gpgsm (2.2.27-2) ...
Setting up dirmngr (2.2.27-2) ...
Setting up gpg-wks-server (2.2.27-2) ...
Setting up gpg-wks-client (2.2.27-2) ...
Setting up gnupg (2.2.27-2) ...
Processing triggers for libc-bin (2.31-13+deb11u2) ...
Processing triggers for ca-certificates (20210119) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Removing intermediate container 555a0cbdaee0
 ---> 5b46f1397882
Step 4/14 : ARG TARGETPLATFORM
 ---> Running in 487b10b1a6a3
Removing intermediate container 487b10b1a6a3
 ---> 9a71aef458c5
Step 5/14 : ENV BITCOIN_VERSION=22.0
 ---> Running in 222c06309f2f
Removing intermediate container 222c06309f2f
 ---> 6ffbb453efbd
Step 6/14 : ENV BITCOIN_DATA=/home/bitcoin/.bitcoin
 ---> Running in b29650f37bbb
Removing intermediate container b29650f37bbb
 ---> d2d12732a9a0
Step 7/14 : ENV PATH=/opt/bitcoin-${BITCOIN_VERSION}/bin:$PATH
 ---> Running in b77c2222934e
Removing intermediate container b77c2222934e
 ---> 207e5e50a8f9
Step 8/14 : RUN set -ex   && if [ "${TARGETPLATFORM}" = "linux/amd64" ]; then export TARGETPLATFORM=x86_64-linux-gnu; fi   && if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then export TARGETPLATFORM=aarch64-linux-gnu; fi   && if [ "${TARGETPLATFORM}" = "linux/arm/v7" ]; then export TARGETPLATFORM=arm-linux-gnueabihf; fi   && for key in     0CCBAAFD76A2ECE2CCD3141DE2FFD5B1D88CA97D     152812300785C96444D3334D17565732E08E5E41     0AD83877C1F0CD1EE9BD660AD7CC770B81FD22A8     590B7292695AFFA5B672CBB2E13FC145CD3F4304     28F5900B1BB5D1A4B6B6D1A9ED357015286A333D     637DB1E23370F84AFF88CCE03152347D07DA627C     CFB16E21C950F67FA95E558F2EEB9F5CC09526C1     6E01EEC9656903B0542B8F1003DB6322267C373B     D1DBF2C4B96F2DEBF4C16654410108112E7EA81F     82921A4B88FD454B7EB8CE3C796C4109063D4EAF     9DEAE0DC7063249FB05474681E4AED62986CD25D     9D3CC86A72F8494342EA5FD10A41BDC3F4FAFF1C     74E2DEF5D77260B98BC19438099BAD163C70FBFA   ; do       gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ||       gpg --batch --keyserver keys.openpgp.org --recv-keys "$key" ||       gpg --batch --keyserver pgp.mit.edu --recv-keys "$key" ||       gpg --batch --keyserver keyserver.pgp.com --recv-keys "$key" ||       gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ||       gpg --batch --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" ;     done   && curl -SLO https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_VERSION}/bitcoin-${BITCOIN_VERSION}-${TARGETPLATFORM}.tar.gz   && curl -SLO https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_VERSION}/SHA256SUMS   && curl -SLO https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_VERSION}/SHA256SUMS.asc   && gpg --verify SHA256SUMS.asc SHA256SUMS   && grep " bitcoin-${BITCOIN_VERSION}-${TARGETPLATFORM}.tar.gz" SHA256SUMS | sha256sum -c -   && tar -xzf *.tar.gz -C /opt   && rm *.tar.gz *.asc   && rm -rf /opt/bitcoin-${BITCOIN_VERSION}/bin/bitcoin-qt
 ---> Running in 80b8233ff1bd
+ [  = linux/amd64 ]
+ [  = linux/arm64 ]
+ [  = linux/arm/v7 ]
+ gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 0CCBAAFD76A2ECE2CCD3141DE2FFD5B1D88CA97D
gpg: directory '/root/.gnupg' created
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key 188CBB2648416AD5: public key ".0xB10C <0xb10c@gmail.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
+ gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 152812300785C96444D3334D17565732E08E5E41
gpg: key 17565732E08E5E41: public key "Andrew Chow (Official New Key) <achow101@gmail.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
+ gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 0AD83877C1F0CD1EE9BD660AD7CC770B81FD22A8
gpg: key D7CC770B81FD22A8: public key "Ben Carman <benthecarman@live.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
+ gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 590B7292695AFFA5B672CBB2E13FC145CD3F4304
gpg: key E13FC145CD3F4304: public key "Antoine Poinsot <darosior@protonmail.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
+ gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 28F5900B1BB5D1A4B6B6D1A9ED357015286A333D
gpg: key C37B1C1D44C786EE: public key "Duncan Dean <duncangleeddean@gmail.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
+ gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 637DB1E23370F84AFF88CCE03152347D07DA627C
gpg: key 2EBB056FD847F8A7: public key "Stephan Oeste (it) <it@oeste.de>" imported
gpg: Total number processed: 1
gpg:               imported: 1
+ gpg --batch --keyserver keyserver.ubuntu.com --recv-keys CFB16E21C950F67FA95E558F2EEB9F5CC09526C1
gpg: key 944D35F9AC3DB76A: public key "Michael Ford (bitcoin-otc) <fanquake@gmail.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
+ gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 6E01EEC9656903B0542B8F1003DB6322267C373B
gpg: key 8E4256593F177720: public key "Oliver Gugger <gugger@gmail.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
+ gpg --batch --keyserver keyserver.ubuntu.com --recv-keys D1DBF2C4B96F2DEBF4C16654410108112E7EA81F
gpg: key 410108112E7EA81F: public key "Hennadii Stepanov (GitHub key) <32963518+hebasto@users.noreply.github.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
+ gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 82921A4B88FD454B7EB8CE3C796C4109063D4EAF
gpg: keyserver receive failed: No data
+ gpg --batch --keyserver keys.openpgp.org --recv-keys 82921A4B88FD454B7EB8CE3C796C4109063D4EAF
gpg: key 796C4109063D4EAF: public key "Jon Atack <jon@atack.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
+ gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 9DEAE0DC7063249FB05474681E4AED62986CD25D
gpg: key 74810B012346C9A6: public key "Wladimir J. van der Laan <laanwj@visucore.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
+ gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 9D3CC86A72F8494342EA5FD10A41BDC3F4FAFF1C
gpg: key 0A41BDC3F4FAFF1C: public key "Aaron Clauson (sipsorcery) <aaron@sipsorcery.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
+ gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 74E2DEF5D77260B98BC19438099BAD163C70FBFA
gpg: key 099BAD163C70FBFA: public key "Will Clark <will8clark@gmail.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
+ curl -SLO https://bitcoincore.org/bin/bitcoin-core-22.0/bitcoin-22.0-.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  163k  100  163k    0     0   109k      0  0:00:01  0:00:01 --:--:--  109k
+ curl -SLO https://bitcoincore.org/bin/bitcoin-core-22.0/SHA256SUMS
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2353  100  2353    0     0   2364      0 --:--:-- --:--:-- --:--:--  2362
+ curl -SLO https://bitcoincore.org/bin/bitcoin-core-22.0/SHA256SUMS.asc
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  9870  100  9870    0     0  12080      0 --:--:-- --:--:-- --:--:-- 12080
+ gpg --verify SHA256SUMS.asc SHA256SUMS
gpg: Signature made Fri Sep 10 11:29:17 2021 UTC
gpg:                using RSA key 0CCBAAFD76A2ECE2CCD3141DE2FFD5B1D88CA97D
gpg: Good signature from ".0xB10C <0xb10c@gmail.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 982A 193E 3CE0 EED5 35E0  9023 188C BB26 4841 6AD5
     Subkey fingerprint: 0CCB AAFD 76A2 ECE2 CCD3  141D E2FF D5B1 D88C A97D
gpg: Signature made Thu Sep  9 20:09:04 2021 UTC
gpg:                using RSA key 152812300785C96444D3334D17565732E08E5E41
gpg:                issuer "achow101@gmail.com"
gpg: Good signature from "Andrew Chow (Official New Key) <achow101@gmail.com>" [expired]
gpg:                 aka "Andrew Chow <achow101-github@achow101.com>" [expired]
gpg:                 aka "Andrew Chow <achow101-lists@achow101.com>" [expired]
gpg:                 aka "Andrew Chow <andrew@achow101.com>" [expired]
gpg:                 aka "Andrew Chow <achow101@yahoo.com>" [expired]
gpg: Note: This key has expired!
Primary key fingerprint: 1528 1230 0785 C964 44D3  334D 1756 5732 E08E 5E41
gpg: Signature made Thu Sep  9 20:16:18 2021 UTC
gpg:                using RSA key 0AD83877C1F0CD1EE9BD660AD7CC770B81FD22A8
gpg:                issuer "benthecarman@live.com"
gpg: Good signature from "Ben Carman <benthecarman@live.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 0AD8 3877 C1F0 CD1E E9BD  660A D7CC 770B 81FD 22A8
gpg: Signature made Fri Sep 10 13:00:35 2021 UTC
gpg:                using RSA key 590B7292695AFFA5B672CBB2E13FC145CD3F4304
gpg:                issuer "darosior@protonmail.com"
gpg: Good signature from "Antoine Poinsot <darosior@protonmail.com>" [unknown]
gpg:                 aka "Antoine Poinsot <antoine@revault.dev>" [unknown]
gpg:                 aka "darosior <darosior@ln.dev>" [unknown]
gpg:                 aka "darosior <darosior@protonmail.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 590B 7292 695A FFA5 B672  CBB2 E13F C145 CD3F 4304
gpg: Signature made Thu Sep  9 20:54:01 2021 UTC
gpg:                using RSA key 28F5900B1BB5D1A4B6B6D1A9ED357015286A333D
gpg: Good signature from "Duncan Dean <duncangleeddean@gmail.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 9484 44FC E03B 05BA 5AB0  591E C37B 1C1D 44C7 86EE
     Subkey fingerprint: 28F5 900B 1BB5 D1A4 B6B6  D1A9 ED35 7015 286A 333D
gpg: Signature made Fri Sep 10 14:26:03 2021 UTC
gpg:                using RSA key 637DB1E23370F84AFF88CCE03152347D07DA627C
gpg: Good signature from "Stephan Oeste (it) <it@oeste.de>" [unknown]
gpg:                 aka "Emzy E. (emzy) <emzy@emzy.de>" [unknown]
gpg:                 aka "Stephan Oeste (Master-key) <stephan@oeste.de>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 9EDA FF80 E080 6596 04F4  A76B 2EBB 056F D847 F8A7
     Subkey fingerprint: 637D B1E2 3370 F84A FF88  CCE0 3152 347D 07DA 627C
gpg: Signature made Fri Sep 10 01:04:14 2021 UTC
gpg:                using RSA key CFB16E21C950F67FA95E558F2EEB9F5CC09526C1
gpg:                issuer "fanquake@gmail.com"
gpg: Good signature from "Michael Ford (bitcoin-otc) <fanquake@gmail.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: E777 299F C265 DD04 7930  70EB 944D 35F9 AC3D B76A
     Subkey fingerprint: CFB1 6E21 C950 F67F A95E  558F 2EEB 9F5C C095 26C1
gpg: Signature made Fri Sep 10 08:03:16 2021 UTC
gpg:                using RSA key 6E01EEC9656903B0542B8F1003DB6322267C373B
gpg:                issuer "gugger@gmail.com"
gpg: Good signature from "Oliver Gugger <gugger@gmail.com>" [unknown]
gpg: Note: This key has expired!
Primary key fingerprint: F4FC 70F0 7310 0284 24EF  C20A 8E42 5659 3F17 7720
     Subkey fingerprint: 6E01 EEC9 6569 03B0 542B  8F10 03DB 6322 267C 373B
gpg: Signature made Thu Sep  9 20:07:53 2021 UTC
gpg:                using RSA key D1DBF2C4B96F2DEBF4C16654410108112E7EA81F
gpg:                issuer "hebasto@gmail.com"
gpg: Good signature from "Hennadii Stepanov (GitHub key) <32963518+hebasto@users.noreply.github.com>" [unknown]
gpg:                 aka "Hennadii Stepanov (hebasto) <hebasto@gmail.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: D1DB F2C4 B96F 2DEB F4C1  6654 4101 0811 2E7E A81F
gpg: Signature made Fri Sep 10 07:14:14 2021 UTC
gpg:                using RSA key 82921A4B88FD454B7EB8CE3C796C4109063D4EAF
gpg:                issuer "jon@atack.com"
gpg: Good signature from "Jon Atack <jon@atack.com>" [unknown]
gpg:                 aka "jonatack <jon@atack.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 8292 1A4B 88FD 454B 7EB8  CE3C 796C 4109 063D 4EAF
gpg: Signature made Fri Sep 10 17:33:30 2021 UTC
gpg:                using RSA key 9DEAE0DC7063249FB05474681E4AED62986CD25D
gpg: Good signature from "Wladimir J. van der Laan <laanwj@visucore.com>" [unknown]
gpg:                 aka "Wladimir J. van der Laan <laanwj@gmail.com>" [unknown]
gpg:                 aka "Wladimir J. van der Laan <laanwj@protonmail.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 71A3 B167 3540 5025 D447  E8F2 7481 0B01 2346 C9A6
     Subkey fingerprint: 9DEA E0DC 7063 249F B054  7468 1E4A ED62 986C D25D
gpg: Signature made Thu Sep  9 20:22:36 2021 UTC
gpg:                using RSA key 9D3CC86A72F8494342EA5FD10A41BDC3F4FAFF1C
gpg:                issuer "aaron@sipsorcery.com"
gpg: Good signature from "Aaron Clauson (sipsorcery) <aaron@sipsorcery.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 9D3C C86A 72F8 4943 42EA  5FD1 0A41 BDC3 F4FA FF1C
gpg: Signature made Fri Sep 10 09:59:33 2021 UTC
gpg:                using RSA key 74E2DEF5D77260B98BC19438099BAD163C70FBFA
gpg:                issuer "will8clark@gmail.com"
gpg: Good signature from "Will Clark <will8clark@gmail.com>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 74E2 DEF5 D772 60B9 8BC1  9438 099B AD16 3C70 FBFA
+ sha256sum -c -
+ grep  bitcoin-22.0-.tar.gz SHA256SUMS
sha256sum: 'standard input': no properly formatted SHA256 checksum lines found
The command '/bin/sh -c set -ex   && if [ "${TARGETPLATFORM}" = "linux/amd64" ]; then export TARGETPLATFORM=x86_64-linux-gnu; fi   && if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then export TARGETPLATFORM=aarch64-linux-gnu; fi   && if [ "${TARGETPLATFORM}" = "linux/arm/v7" ]; then export TARGETPLATFORM=arm-linux-gnueabihf; fi   && for key in     0CCBAAFD76A2ECE2CCD3141DE2FFD5B1D88CA97D     152812300785C96444D3334D17565732E08E5E41     0AD83877C1F0CD1EE9BD660AD7CC770B81FD22A8     590B7292695AFFA5B672CBB2E13FC145CD3F4304     28F5900B1BB5D1A4B6B6D1A9ED357015286A333D     637DB1E23370F84AFF88CCE03152347D07DA627C     CFB16E21C950F67FA95E558F2EEB9F5CC09526C1     6E01EEC9656903B0542B8F1003DB6322267C373B     D1DBF2C4B96F2DEBF4C16654410108112E7EA81F     82921A4B88FD454B7EB8CE3C796C4109063D4EAF     9DEAE0DC7063249FB05474681E4AED62986CD25D     9D3CC86A72F8494342EA5FD10A41BDC3F4FAFF1C     74E2DEF5D77260B98BC19438099BAD163C70FBFA   ; do       gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ||       gpg --batch --keyserver keys.openpgp.org --recv-keys "$key" ||       gpg --batch --keyserver pgp.mit.edu --recv-keys "$key" ||       gpg --batch --keyserver keyserver.pgp.com --recv-keys "$key" ||       gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" ||       gpg --batch --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" ;     done   && curl -SLO https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_VERSION}/bitcoin-${BITCOIN_VERSION}-${TARGETPLATFORM}.tar.gz   && curl -SLO https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_VERSION}/SHA256SUMS   && curl -SLO https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_VERSION}/SHA256SUMS.asc   && gpg --verify SHA256SUMS.asc SHA256SUMS   && grep " bitcoin-${BITCOIN_VERSION}-${TARGETPLATFORM}.tar.gz" SHA256SUMS | sha256sum -c -   && tar -xzf *.tar.gz -C /opt   && rm *.tar.gz *.asc   && rm -rf /opt/bitcoin-${BITCOIN_VERSION}/bin/bitcoin-qt' returned a non-zero code: 1
schildbach commented 2 years ago

The Alpine version at least builds fine – I'll be testing it any minute now.

schildbach commented 2 years ago

But it doesn't run:

container_linux.go:380: starting container process caused: exec: "/entrypoint.sh": permission denied: unknown

I assume this is the entrypoint.sh script trying to assign permissions. Are the UID and GID of the bitcoin user different between Debian and Alpine versions? Sadly it doesn't print them, so I do not know how to chown my existing volume.

In this regard, I think it would be a good idea to merge #120, as it would give control about UID/GID to the system admin.

schildbach commented 2 years ago

Found out what causes the permission error: both docker-entrypoint.sh files don't have the executable bit set.

Silvenga commented 2 years ago

Ah, likely because I was testing my build on Windows. I'll fix that.

Silvenga commented 2 years ago

Fixed the execution bit.

Silvenga commented 2 years ago

@ruimarinho how does this pr look?

@schildbach it looks like you need to use build kit, or manually set TARGETPLATFORM.

ruimarinho commented 2 years ago

Looks great @Silvenga, thank you! I'll give it a more thorough look in the next days before merging, but appreciate your help.

Zorato commented 2 years ago

Hey, any updates on this one?

ravz commented 2 years ago

keen to see this merged please

ruimarinho commented 2 years ago

@ravz @Zorato I'll be merging this today. Tough week, sorry!

ruimarinho commented 2 years ago

Landed in https://github.com/ruimarinho/docker-bitcoin-core/commit/771d9b34afdb01bdc687a85ed95f425167262e42. Had to introduce a few tweaks on the build system as "22" is the new major version, as opposed to "0.22". For convenience, there is now a ruimarinho/bitcoin-core:22 lineage for all 22.x future releases.

Don't worry about the failed build marker next to the commit. Due to the recent expiration of Let's Encrypt Root CA, version 0.11 was not able to be compiled. I've updated the certs to make sure it's back to green.

Thanks for the great contribution @Silvenga. If you like and trust this image, make sure you star it on Docker Hub to increase the likelihood of a best match.

ruimarinho commented 1 year ago

@schildbach custom uid/gid support is now available!