Skip to content

Commit da60f75

Browse files
committed
Update services
1 parent f483616 commit da60f75

7 files changed

Lines changed: 26 additions & 16 deletions

File tree

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ TOR_DATA=./volumes/tor
1919
# i2p version to build the container.
2020
# To be obtained from this site: https://github.com/i2p/i2p.i2p/releases
2121
# Example: i2p-2.7.0
22-
I2P_VERSION=2.11.0
22+
I2P_VERSION=2.12.0
2323

2424
# User identifier used for i2p inside the container.
2525
I2P_USER_ID=1099

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The stack is designed for users who want transparent local builds instead of pul
3434
| [Electrs](https://github.com/romanz/electrs) | Serves Electrum-compatible wallets from your own node. | 0.11.1 | ![Electrs version status](https://img.shields.io/endpoint?url=https%3A%2F%2Fevehash.github.io%2Fbitcoin-full-node-with-docker%2Fversion-status%2Felectrs.json) |
3535
| [BTC RPC Explorer](https://github.com/janoside/btc-rpc-explorer) | Provides a local Bitcoin blockchain explorer backed by your node. | 3.5.1 | ![BTC RPC Explorer version status](https://img.shields.io/endpoint?url=https%3A%2F%2Fevehash.github.io%2Fbitcoin-full-node-with-docker%2Fversion-status%2Fbtcrpcexplorer.json) |
3636
| [NGINX](https://github.com/nginxinc/docker-nginx) | Terminates local TLS for BTC RPC Explorer and Electrs. | stable-slim | ![NGINX version status](https://img.shields.io/endpoint?url=https%3A%2F%2Fevehash.github.io%2Fbitcoin-full-node-with-docker%2Fversion-status%2Fnginx.json) |
37-
| [I2P](https://github.com/i2p/i2p.i2p) | Optional additional privacy network for advanced users. | 2.11.0 | ![I2P version status](https://img.shields.io/endpoint?url=https%3A%2F%2Fevehash.github.io%2Fbitcoin-full-node-with-docker%2Fversion-status%2Fi2p.json) |
37+
| [I2P](https://github.com/i2p/i2p.i2p) | Optional additional privacy network for advanced users. | 2.12.0 | ![I2P version status](https://img.shields.io/endpoint?url=https%3A%2F%2Fevehash.github.io%2Fbitcoin-full-node-with-docker%2Fversion-status%2Fi2p.json) |
3838

3939
Version status badges are generated weekly. `current` means the pinned version matches the latest stable upstream tag; `new release` means a newer upstream tag is available for review.
4040

UPDATING_SERVICES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ In case that something goes wrong during this process, it can be for two reasons
5151

5252
In both cases, you can go back to the previous version that was working before. So simply revert the steps: put the previous version back in the `.env` file and re-run the service. The container you had previously will be deployed and everything should work again.
5353

54-
In the meantime, you can open a thread in the [Discussions](https://github.com/reverse-hash/bitcoin-full-node-with-docker/discussions) section so we can help you.
54+
In the meantime, you can open a thread in the [Discussions](https://github.com/evehash/bitcoin-full-node-with-docker/discussions) section so we can help you.

docker-compose.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ services:
3434
I2P_VERSION: ${I2P_VERSION}
3535
I2P_USER_ID: ${I2P_USER_ID}
3636
GROUP_ID: ${SHARED_GID}
37+
environment:
38+
JVM_XMX: "512m"
39+
EXT_PORT: "12345"
3740
ports:
3841
- "7657:7657"
3942
volumes:
@@ -42,7 +45,8 @@ services:
4245
restart: on-failure
4346
stop_grace_period: 2m
4447
healthcheck:
45-
test: ["CMD", "nc", "-z", "127.0.0.1", "7656"]
48+
# I2P rewrites client binds to the container IP, so check the same SAM endpoint Bitcoin uses.
49+
test: ["CMD", "nc", "-z", "i2p", "7656"]
4650
interval: 30s
4751
timeout: 5s
4852
retries: 10

i2p/Dockerfile

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,30 @@ ARG I2P_VERSION
55
# Install build dependencies only in the builder stage.
66
RUN apk add --no-cache \
77
apache-ant \
8-
bzip2 \
8+
curl \
99
gettext \
10+
git \
1011
gpg \
11-
gpg-agent \
12-
wget
12+
gpg-agent
1313

1414
WORKDIR /opt
1515

16-
# Download and verify the upstream source archive before building.
17-
RUN wget https://github.com/i2p/i2p.i2p/releases/download/i2p-${I2P_VERSION}/i2psource_${I2P_VERSION}.tar.bz2 \
18-
&& wget https://github.com/i2p/i2p.i2p/releases/download/i2p-${I2P_VERSION}/i2psource_${I2P_VERSION}.tar.bz2.sig \
19-
&& wget -O - https://geti2p.net/_static/idk.key.asc | gpg --import \
20-
&& gpg --verify i2psource_${I2P_VERSION}.tar.bz2.sig
16+
# Import I2P release signing keys before verifying the upstream release tag.
17+
RUN curl -fsSL https://i2p.net/zzz.key.asc | gpg --batch --import \
18+
&& curl -fsSL https://i2p.net/idk.key.asc | gpg --batch --import \
19+
&& gpgconf --kill all
20+
21+
# Clone and verify the upstream release tag before building.
22+
RUN git clone \
23+
--depth 1 \
24+
--branch "i2p-${I2P_VERSION}" \
25+
https://github.com/i2p/i2p.i2p.git \
26+
"i2p-${I2P_VERSION}" \
27+
&& cd "i2p-${I2P_VERSION}" \
28+
&& git verify-tag "i2p-${I2P_VERSION}"
2129

2230
# Build the Linux package layout copied into the runtime image.
23-
RUN tar -xvf i2psource_${I2P_VERSION}.tar.bz2 \
24-
&& cd i2p-${I2P_VERSION} \
31+
RUN cd i2p-${I2P_VERSION} \
2532
&& ant preppkg-linux-only
2633

2734

volumes/nginx/nginx.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ http {
1616
}
1717

1818
stream {
19-
2019
ssl_certificate certificate.crt;
2120
ssl_certificate_key certificate.key;
2221
ssl_session_cache shared:SSL1:1m;
@@ -41,5 +40,4 @@ stream {
4140
listen 50002 ssl;
4241
proxy_pass electrs;
4342
}
44-
4543
}

volumes/tor/torrc.default

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Socks listen port
2+
SocksPort 127.0.0.1:9050
23
SocksPort tor:9050
34

45
# Uncomment to expose Bitcoin Explorer as an Onion Service

0 commit comments

Comments
 (0)