Skip to content

Commit

Permalink
fix: fixed the dev container not starting up fully
Browse files Browse the repository at this point in the history
  • Loading branch information
r-a303931 committed Oct 10, 2023
1 parent a479ee2 commit 7da8bb4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
],

"postCreateCommand": "docker-compose -f docker-compose.dev.yml run dev-setup",
"postStartCommand": "docker-compose -f docker-compose.dev.yml run --service-ports client_dev_server",

"customizations": {
"vscode": {
Expand Down
3 changes: 0 additions & 3 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ services:
- PORT=3001
- HOST_NAME=localevmplus.org
- NODE_ENV=development
secrets:
- db_user
- db_password
command: /usr/evm-plus/scripts/dev-setup.sh

full-build:
Expand Down
6 changes: 6 additions & 0 deletions scripts/dev-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,14 @@ REACT_APP_RECAPTCHA_KEY=6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI
DANGEROUSLY_DISABLE_HOST_CHECK=true
EOD

mkdir /run/secrets
echo -n 6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe > keys/recaptcha_secret
echo -n em > keys/db_user
echo -n em > /run/secrets/db_user
echo -n toor > keys/db_password
echo -n toor > /run/secrets/db_password
echo -n > keys/discord_client_token
echo -n > keys/aws_access_key_id
echo -n > keys/aws_secret_access_key

packages/util-cli/dist/importFakeData.js

0 comments on commit 7da8bb4

Please sign in to comment.