* test: add server unit tests for controllers - partial issue #71 * test: add task controller unit tests issue #71 * docs: add cloud scripts to start services * docs: add sonar to backend issue #198 * docs: add sonar params * fix: russian text * test: add note controller test issue #71 * test: add auth service unit tests - wip issue #71 * test: add auth and home service unit tests issue #71
22 lines
594 B
Bash
22 lines
594 B
Bash
#!/bin/bash
|
|
#
|
|
|
|
PR="$1"
|
|
echo "PR: $PR"
|
|
|
|
echo "Getting env vars..."
|
|
export $(cat .env | xargs)
|
|
|
|
docker run -d --rm \
|
|
--name server \
|
|
--network=host \
|
|
-e POSTGRES_DB=$POSTGRES_DB \
|
|
-e POSTGRES_USER=$POSTGRES_USER \
|
|
-e POSTGRES_PASSWORD=$POSTGRES_PASSWORD \
|
|
-e POSTGRES_PORT=$POSTGRES_PORT \
|
|
-e POSTGRES_HOST=$POSTGRES_HOST \
|
|
-e CORS_ALLOWED_ORIGINS=$CORS_ALLOWED_ORIGINS \
|
|
-e SERVER_SERVLET_CONTEXT_PATH=$SERVER_SERVLET_CONTEXT_PATH \
|
|
-e BUILD=ghcr.io/ricardo-campos-org/react-typescript-todolist/server:$PR \
|
|
ghcr.io/ricardo-campos-org/react-typescript-todolist/server:$PR
|