Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change "docker-compose" to "docker compose" #25

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ops/local-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cat localhost/localhost.key localhost/localhost.crt > localhost/localhost.packed

# Start up service dependencies
cd ops
docker-compose up -d
docker compose up -d

echo "Waiting for dependencies to start..."
while ! pg_isready -U "$POSTGRES_USER" -h localhost -p "$POSTGRES_PORT" -q ; do
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"db-ssh-tunnel": "lsof -i '@localhost:15432' >/dev/null || ssh -f -N -L 15432:database-prod-read.int.cord.com:5432 zero",
"db-ssh-tunnel-write": "lsof -i '@localhost:25432' >/dev/null || ssh -f -N -L 25432:database-prod.int.cord.com:5432 zero",
"start-external-dev": "http-server ./dist/external -c-1 -a :: --silent --port 8179 --cors --ssl --key ./localhost/localhost.key --cert ./localhost/localhost.crt",
"start-local-s3": "cat ./localhost/localhost.key ./localhost/localhost.crt > ./localhost/localhost.packed && cd ops && docker-compose up localstack",
"start-postgres": ". ./.env && export POSTGRES_USER POSTGRES_DB POSTGRES_PORT POSTGRES_PASSWORD && cd ops && docker-compose up postgres",
"start-redis": "cd ops && docker-compose up redis",
"start-local-s3": "cat ./localhost/localhost.key ./localhost/localhost.crt > ./localhost/localhost.packed && cd ops && docker compose up localstack",
"start-postgres": ". ./.env && export POSTGRES_USER POSTGRES_DB POSTGRES_PORT POSTGRES_PASSWORD && cd ops && docker compose up postgres",
"start-redis": "cd ops && docker compose up redis",
"start-server-dev": "NODE_EXTRA_CA_CERTS=\"$(mkcert -CAROOT)/rootCA.pem\" node -r dotenv/config --enable-source-maps ./dist/server/index.js",
"start-server-dev-snapshots": "NODE_EXTRA_CA_CERTS=\"$(mkcert -CAROOT)/rootCA.pem\" node -r dotenv/config --enable-source-maps --heapsnapshot-signal=SIGUSR2 ./dist/server/index.js",
"start-server-prod": "node -r dotenv/config dist/generic/server/index.js",
Expand All @@ -37,7 +37,7 @@
"start-docs-server-prod": "node -r dotenv/config dist/generic/docs/server/index.js",
"tsc": "tsc --incremental false --noEmit --skipLibCheck --watch --preserveWatchOutput",
"tsc-once": "tsc --incremental false --noEmit --skipLibCheck",
"wipe-postgres": "cd ops && POSTGRES_USER= POSTGRES_DB= POSTGRES_PASSWORD= docker-compose down --volumes",
"wipe-postgres": "cd ops && POSTGRES_USER= POSTGRES_DB= POSTGRES_PASSWORD= docker compose down --volumes",
"install": "find node_modules/@sentry/ -type f -print0 | grep -z -E '\\.(js|js\\.map|d\\.ts)$' | if sed --version >/dev/null 2>&1 ; then xargs -0 sed --in-place 's/\\b__SENTRY__\\b/_CORDSNTRY/g;'; else xargs -0 sed -i '' -E 's/[[:<:]]__SENTRY__[[:>:]]/_CORDSNTRY/g;'; fi",
"postinstall": "patch-package",
"repl": "./build/index.mjs --mode=development --target=repl && node ./dist/repl/index.js",
Expand Down