Skip to content

Commit

Permalink
update envs (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marketen authored Jul 22, 2024
1 parent 9e1b425 commit 9bd2fe7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
11 changes: 6 additions & 5 deletions beacon-chain/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ FROM sigp/lighthouse:${UPSTREAM_VERSION}-modern

ARG NETWORK
ARG STAKER_SCRIPTS_VERSION
ARG DATA_DIR

COPY jwtsecret.hex /jwtsecret
COPY entrypoint.sh /usr/local/bin/entrypoint.sh

ENV JWT_SECRET_FILE=/jwtsecret \
DATA_DIR=/root/.lighthouse \
ENV JWT_FILE_PATH=/jwtsecret \
DATA_DIR=${DATA_DIR} \
BEACON_API_PORT=3500 \
NETWORK=${NETWORK} \
STAKER_SCRIPTS_URL=https://github.com/dappnode/staker-package-scripts/releases/download/${STAKER_SCRIPTS_VERSION}

COPY jwtsecret.hex ${JWT_FILE_PATH}
COPY entrypoint.sh /usr/local/bin/entrypoint.sh

ADD ${STAKER_SCRIPTS_URL}/consensus_tools.sh /etc/profile.d/

RUN chmod +rx /usr/local/bin/entrypoint.sh /etc/profile.d/consensus_tools.sh
Expand Down
2 changes: 1 addition & 1 deletion beacon-chain/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ run_beacon() {
--metrics-port 8008 \
--metrics-allow-origin "*" \
--execution-endpoint "${ENGINE_API_URL}" \
--execution-jwt "${JWT_SECRET_FILE}" \
--execution-jwt "${JWT_FILE_PATH}" \
${EXTRA_OPTS}
}

Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ services:
UPSTREAM_VERSION: v5.2.1
STAKER_SCRIPTS_VERSION: v0.1.0
BEACON_API_PORT: 3500
DATA_DIR: /root/.lighthouse
volumes:
- "beacon-data:/root/.lighthouse"
restart: unless-stopped
Expand All @@ -22,6 +23,7 @@ services:
args:
UPSTREAM_VERSION: v5.2.1
STAKER_SCRIPTS_VERSION: v0.1.0
DATA_DIR: /root/.lighthouse
restart: unless-stopped
# security_opt:
# - "seccomp:unconfined"
Expand Down
3 changes: 2 additions & 1 deletion validator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ FROM sigp/lighthouse:${UPSTREAM_VERSION}-modern

ARG NETWORK
ARG STAKER_SCRIPTS_VERSION
ARG DATA_DIR

COPY security/api-token.txt /root/.lighthouse/validators/
COPY security/.secp-sk /root/.lighthouse/validators/
COPY entrypoint.sh /usr/local/bin

ENV VALIDATOR_PORT=3500 \
DATA_DIR=/root/.lighthouse \
DATA_DIR=${DATA_DIR} \
NETWORK=${NETWORK} \
STAKER_SCRIPTS_URL=https://github.com/dappnode/staker-package-scripts/releases/download/${STAKER_SCRIPTS_VERSION}

Expand Down

0 comments on commit 9bd2fe7

Please sign in to comment.