Skip to content

Commit

Permalink
Merge pull request #274 from yorickdowne/main
Browse files Browse the repository at this point in the history
Support Erigon 2021.07.04-alpha
  • Loading branch information
yorickdowne committed Jul 22, 2021
2 parents 17888a7 + 53e91ce commit 0026b3d
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ If we've helped you out, in-person or by creating this project, a tip will be ve

# Version

This is eth-docker v1.4.2
This is eth-docker v1.4.2.1
4 changes: 2 additions & 2 deletions default.env
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ LS_DOCKERFILE=Dockerfile.binary

# Erigon
ERIGON_SRC_BUILD_TARGET=$(git describe --tags $(git rev-list --tags --max-count=1))
ERIGON_DOCKER_TAG=latest
ERIGON_DOCKERFILE=Dockerfile.source
ERIGON_DOCKER_TAG=stable
ERIGON_DOCKERFILE=Dockerfile.binary

# OpenEthereum
OE_SRC_BUILD_TARGET=$(git describe --tags $(git rev-list --tags --max-count=1))
Expand Down
8 changes: 4 additions & 4 deletions erigon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
image: erigon:local
user: erigon
volumes:
- erigon-ec-data:/var/lib/erigon
- erigon-ec-data:/var/lib/erigoni
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
Expand All @@ -25,13 +25,13 @@ services:
- --private.api.addr
- 0.0.0.0:9090
- --datadir
- /var/lib/erigon
- /var/lib/erigoni
- --port
- ${EC_P2P_PORT}
- --chain
- ${EC_NETWORK}
- --storage-mode
- r
- --prune
- htc
execution:
restart: "${RESTART}"
image: erigon:local
Expand Down
18 changes: 18 additions & 0 deletions erigon/Dockerfile.binary
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
ARG DOCKER_TAG

FROM thorax/erigon:${DOCKER_TAG}

# Unused, this is here to avoid build time complaints
ARG BUILD_TARGET

ARG UID=10001

USER root

RUN apk --no-cache add shadow && groupmod -g "${UID}" erigon && usermod -u "${UID}" -g "${UID}" erigon

RUN mkdir -p /var/lib/erigoni && chown -R erigon:erigon /var/lib/erigoni

USER erigon

ENTRYPOINT ["erigon"]
2 changes: 1 addition & 1 deletion erigon/Dockerfile.source
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN adduser \
--uid "${UID}" \
"${USER}"

RUN mkdir -p /var/lib/erigon && chown ${USER}:${USER} /var/lib/erigon
RUN mkdir -p /var/lib/erigoni && chown ${USER}:${USER} /var/lib/erigoni

# Copy executable
COPY --from=builder /src/erigon/build/bin/erigon /usr/local/bin/
Expand Down

0 comments on commit 0026b3d

Please sign in to comment.