Skip to content

Commit

Permalink
feat: config file path for checkpointer Dockerfile (#177)
Browse files Browse the repository at this point in the history
* fix: add new config file for price-pusher, add stage on vrf-listener dockerfile, add new env variable for config path

* fix: config file path on Dockerfile

* fix: space issue

* feat: add config file path to checkpointer Dockerfile
  • Loading branch information
hel-kame authored Jul 30, 2024
1 parent 5559ecc commit 961b933
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion infra/checkpointer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,9 @@ COPY checkpointer/ /opt/checkpointer/
WORKDIR /opt/checkpointer
RUN poetry env use 3.12
RUN poetry install
ENTRYPOINT poetry run checkpointer -c config/config.yaml -n ${NETWORK} --oracle-address ${ORACLE_ADDRESS} --admin-address ${ADMIN_ADDRESS} --private-key ${PRIVATE_KEY} -t ${CHECK_INTERVAL} --rpc-url ${RPC_URL}

FROM base as final
COPY --from=builder /opt /opt
COPY infra/checkpointer/config/ /opt/checkpointer/config/
WORKDIR /opt/checkpointer
ENTRYPOINT /opt/checkpointer/.venv/bin/python3.12 checkpointer/main.py -c ${CONFIG_PATH} -n ${NETWORK} --oracle-address ${ORACLE_ADDRESS} --admin-address ${ADMIN_ADDRESS} --private-key ${PRIVATE_KEY} -t ${CHECK_INTERVAL} --rpc-url ${RPC_URL}
1 change: 1 addition & 0 deletions infra/checkpointer/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ container_environment:
- region: "eu-west-3"
- prefix: "/conf/{{ SERVICE_NAME }}/{{ RUN_ENV }}"
- keys:
- CONFIG_PATH
- NETWORK
- ORACLE_ADDRESS
- ADMIN_ADDRESS
Expand Down

0 comments on commit 961b933

Please sign in to comment.