Skip to content

Commit

Permalink
chore: Add keystore start script
Browse files Browse the repository at this point in the history
  • Loading branch information
jsanmigimeno committed Oct 28, 2024
1 parent 2a1967a commit cc9c308
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ src/contracts
# env
.env
config.*.yaml
!config.example.yaml
!config.example.yaml
*.keystore
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ services:
- NODE_ENV=${NODE_ENV}
- REDIS_HOST=redis
- SPY_HOST=spy
- RELAYER_PRIVATE_KEY=${RELAYER_PRIVATE_KEY}
expose:
- ${RELAYER_PORT}:${RELAYER_PORT}
container_name: relayer
Expand Down
4 changes: 4 additions & 0 deletions scripts/start-docker-keystore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
PRIVATE_KEY_RESPONSE=$(cast wallet decrypt-keystore --keystore-dir ./ $NODE_ENV.keystore) || exit 1
RELAYER_PRIVATE_KEY="${PRIVATE_KEY_RESPONSE: -66}"
RELAYER_PRIVATE_KEY="$RELAYER_PRIVATE_KEY" docker compose up -d

0 comments on commit cc9c308

Please sign in to comment.