Skip to content

Commit f1a9d2c

Browse files
authored
Merge pull request #20 from dappnode/hcastc00/fix-upstream-version
refactor: standardize version format and improve Dockerfile ARG handling
2 parents 852b05f + 7eceb1a commit f1a9d2c

5 files changed

Lines changed: 29 additions & 17 deletions

File tree

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# DAppNodeSDK release directories
2-
build_*
3-
releases.json
4-
docker-compose-tmp.yml
2+
build_*
3+
releases.json
4+
docker-compose-tmp.yml
55

dappnode_package.json

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,26 @@
22
"upstream": [
33
{
44
"repo": "AztecProtocol/aztec-packages",
5-
"version": "2.0.2",
5+
"version": "v2.0.2",
66
"arg": "UPSTREAM_VERSION"
77
}
88
],
99
"description": "Aztec is a privacy first L2 on Ethereum",
1010
"type": "service",
11-
"architectures": ["linux/amd64"],
11+
"architectures": [
12+
"linux/amd64"
13+
],
1214
"author": "DAppNode Association <admin@dappnode.io> (https://github.com/dappnode)",
13-
"categories": ["Blockchain", "ETH2.0"],
14-
"keywords": ["aztec", "validator", "rollup", "privacy"],
15+
"categories": [
16+
"Blockchain",
17+
"ETH2.0"
18+
],
19+
"keywords": [
20+
"aztec",
21+
"validator",
22+
"rollup",
23+
"privacy"
24+
],
1525
"links": {
1626
"homepage": "https://aztec.network",
1727
"readme": "https://github.com/DAppNode/DAppNodePackage-aztec-generic#readme",
@@ -27,8 +37,12 @@
2737
},
2838
"globalEnvs": [
2939
{
30-
"envs": ["PUBLIC_IP"],
31-
"services": ["sequencer"]
40+
"envs": [
41+
"PUBLIC_IP"
42+
],
43+
"services": [
44+
"sequencer"
45+
]
3246
}
3347
]
34-
}
48+
}

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
build:
55
context: sequencer
66
args:
7-
UPSTREAM_VERSION: 2.0.2
7+
UPSTREAM_VERSION: v2.0.2
88
DATA_DIRECTORY: /data
99
volumes:
1010
- sequencer-data:/data

package_variants/sepolia/docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ services:
77
environment:
88
ETHEREUM_HOSTS: http://geth.sepolia-geth.dappnode:8545
99
L1_CONSENSUS_HOST_URLS: http://prysm-sepolia.dappnode:3500
10-
SYNC_SNAPSHOTS_URL: https://aztec.denodes.xyz/snapshot/
1110
ports:
1211
- 40400:40400/tcp
1312
- 40400:40400/udp

sequencer/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
ARG UPSTREAM_VERSION
1+
# syntax=docker/dockerfile-upstream:master
2+
ARG UPSTREAM_VERSION # e.g. v1.2.3
3+
FROM aztecprotocol/aztec:${UPSTREAM_VERSION#v}
24

3-
FROM aztecprotocol/aztec:${UPSTREAM_VERSION}
4-
5-
# Set ENV variables based on the build-time ARGs
65
ARG NETWORK
76
ARG L1_CHAIN_ID
87
ARG DATA_DIRECTORY
98

109
ENV NETWORK=${NETWORK} \
10+
L1_CHAIN_ID=${L1_CHAIN_ID} \
1111
DATA_DIRECTORY=${DATA_DIRECTORY}
1212

1313
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
1414
RUN chmod +x /usr/local/bin/entrypoint.sh
15-
1615
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

0 commit comments

Comments
 (0)