Skip to content

Commit

Permalink
tools/docker: use longer password (#11098)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmank88 authored Oct 27, 2023
1 parent 5808e73 commit 7206a62
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion tools/docker/.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Chainlink env vars
CHAINLINK_DB_NAME=node_dev
CL_DEV=true
CHAINLINK_PGPASSWORD=node
CHAINLINK_PGPASSWORD=thispasswordislongenough

# Explorer env vars
EXPLORER_DB_NAME=explorer_dev
Expand Down
4 changes: 0 additions & 4 deletions tools/docker/dev-secrets.toml

This file was deleted.

2 changes: 1 addition & 1 deletion tools/docker/develop.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ EXPOSE 8546

# Default env setup for testing
ENV CHAINLINK_DB_NAME chainlink_test
ENV CHAINLINK_PGPASSWORD=node
ENV CHAINLINK_PGPASSWORD=thispasswordislongenough
ENV CL_DATABASE_URL=postgresql://postgres:$CHAINLINK_PGPASSWORD@localhost:5432/$CHAINLINK_DB_NAME?sslmode=disable
ENV TYPEORM_USERNAME=postgres
ENV TYPEORM_PASSWORD=node
Expand Down
8 changes: 2 additions & 6 deletions tools/docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
# Note that the keystore import allows us to submit transactions
# immediately because addresses are specified when starting the
# parity/geth node to be prefunded with eth.
entrypoint: /bin/sh -c "chainlink -c /run/secrets/config -s /run/secrets/secrets node start -d -p /run/secrets/node_password -a /run/secrets/apicredentials"
entrypoint: /bin/sh -c "chainlink -c /run/secrets/config node start -d -p /run/secrets/node_password -a /run/secrets/apicredentials"
restart: always
environment:
- CL_DATABASE_URL
Expand All @@ -23,15 +23,14 @@ services:
- apicredentials
- keystore
- config
- secrets

node-2:
container_name: chainlink-node-2
image: smartcontract/chainlink
build:
context: ../../
dockerfile: core/chainlink.Dockerfile
entrypoint: /bin/sh -c "chainlink -c /run/secrets/config -s /run/secrets/secrets node start -d -p /run/secrets/node_password -a /run/secrets/apicredentials"
entrypoint: /bin/sh -c "chainlink -c /run/secrets/config node start -d -p /run/secrets/node_password -a /run/secrets/apicredentials"
restart: always
environment:
- CL_DATABASE_URL
Expand All @@ -44,7 +43,6 @@ services:
- apicredentials
- keystore
- config
- secrets

# TODO
# - replace clroot with secrets
Expand All @@ -59,6 +57,4 @@ secrets:
file: ../secrets/0xb90c7E3F7815F59EAD74e7543eB6D9E8538455D6.json
config:
file: config.toml
secrets:
file: dev-secrets.toml

0 comments on commit 7206a62

Please sign in to comment.