Skip to content

Commit b81b38b

Browse files
Adapt project to v3 (#8)
* Rename folders * Update to v3 changes * Change port * Upgrade to 3.0.3 * Fix version
1 parent a2b68b6 commit b81b38b

File tree

9 files changed

+335
-297
lines changed

9 files changed

+335
-297
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ FROM europe-west3-docker.pkg.dev/hoprassociation/docker-images/hoprd:${UPSTREAM_
55
ENV DAPPNODE=true
66

77
ADD hoprd.cfg.yaml /app/hoprd/conf/hoprd.cfg.yaml
8+
ADD entrypoint.sh /bin/entrypoint.sh
9+
10+
RUN chmod +rx /bin/entrypoint.sh
11+
12+
ENTRYPOINT ["/bin/entrypoint.sh"]

dappnode_package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hopr-testnet.public.dappnode.eth",
3-
"version": "1.0.0",
3+
"version": "1.0.19",
44
"upstreamVersion": "kaunas",
55
"description": "The HOPR protocol ensures everyone has control of their privacy, data, and identity. By running a HOPR Node, you can obtain HOPR tokens by relaying data and connect to the HOPR Network.",
66
"type": "service",
@@ -56,7 +56,7 @@
5656
{
5757
"name": "GnosisVPN Session port",
5858
"description": "Port used for Gnosis VPN",
59-
"port": 1422,
59+
"port": 1522,
6060
"serviceName": "node"
6161
},
6262
{

docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
build:
66
context: .
77
args:
8-
UPSTREAM_VERSION: latest
8+
UPSTREAM_VERSION: 3.0.0@sha256:fa9764f5e9927094960f63dfb68dbf6cbc237210559a890f1effa29da6e92ecd
99
ports:
1010
- "3101:3101/tcp"
1111
- 9191:9191/tcp
@@ -26,8 +26,8 @@ services:
2626
- 9198:9198/udp
2727
- 9199:9199/tcp
2828
- 9199:9199/udp
29-
- "10000-10100:10000-10100/tcp"
30-
- "10000-10100:10000-10100/udp"
29+
- "20000-20100:20000-20100/tcp"
30+
- "20000-20100:20000-20100/udp"
3131
volumes:
3232
- "data:/app/hoprd/data"
3333
- "conf:/app/hoprd/conf"
@@ -41,7 +41,7 @@ services:
4141
HOPRD_MODULE_ADDRESS: 0x
4242
HOPRD_PASSWORD: ""
4343
HOPRD_PROVIDER: ""
44-
HOPRD_SESSION_PORT_RANGE: "10000:10100"
44+
HOPRD_SESSION_PORT_RANGE: "20000:20100"
4545
HOPRD_MAX_BLOCK_RANGE: 100
4646
HOPRD_MAX_RPC_REQUESTS_PER_SEC: 10
4747
HOPRD_NAT: "true"
@@ -58,7 +58,7 @@ services:
5858
build:
5959
context: ./hopr-admin
6060
image: >-
61-
europe-west3-docker.pkg.dev/hoprassociation/docker-images/hopr-admin:kaunas
61+
europe-west3-docker.pkg.dev/hoprassociation/docker-images/hopr-admin:3.0.3
6262
ports:
6363
- "3100:4677"
6464
restart: unless-stopped

entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
env ${ADDITIONAL_ENVIRONMENT_VARS} /bin/docker-entrypoint.sh ${ADDITIONAL_CMDLINE_ARGS}

hoprd.cfg.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,11 @@ hopr:
88
on_fail_continue: true
99
allow_recursive: true
1010
strategies:
11-
- !Aggregating
12-
aggregation_threshold: 250
13-
unrealized_balance_ratio: 0.9
14-
aggregate_on_channel_close: true
1511
- !AutoRedeeming
1612
redeem_only_aggregated: true
1713
minimum_redeem_ticket_value: "0.25 wxHOPR"
1814
- !ClosureFinalizer
1915
max_closure_overdue: 300
20-
protocol:
21-
ticket_aggregation:
22-
timeout: 15
2316
chain:
2417
announce: true
2518
network: rotsee

0 commit comments

Comments
 (0)