Skip to content

Commit 81f9311

Browse files
committed
Update scripts to docker v2
1 parent 1d0d2ef commit 81f9311

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

scripts/build-push.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ TAG=${TAG?Variable not set} \
77
FRONTEND_ENV=${FRONTEND_ENV-production} \
88
sh ./scripts/build.sh
99

10-
docker-compose -f docker-compose.yml push
10+
docker compose -f docker-compose.yml push

scripts/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ set -e
55

66
TAG=${TAG?Variable not set} \
77
FRONTEND_ENV=${FRONTEND_ENV-production} \
8-
docker-compose \
8+
docker compose \
99
-f docker-compose.yml \
1010
build

scripts/deploy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ DOMAIN=${DOMAIN?Variable not set} \
77
TRAEFIK_TAG=${TRAEFIK_TAG?Variable not set} \
88
STACK_NAME=${STACK_NAME?Variable not set} \
99
TAG=${TAG?Variable not set} \
10-
docker-compose \
10+
docker compose \
1111
-f docker-compose.yml \
1212
config > docker-stack.yml
1313

scripts/test-local.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
# Exit in case of error
44
set -e
55

6-
docker-compose down -v --remove-orphans # Remove possibly previous broken stacks left hanging after an error
6+
docker compose down -v --remove-orphans # Remove possibly previous broken stacks left hanging after an error
77

88
if [ $(uname -s) = "Linux" ]; then
99
echo "Remove __pycache__ files"
1010
sudo find . -type d -name __pycache__ -exec rm -r {} \+
1111
fi
1212

13-
docker-compose build
14-
docker-compose up -d
15-
docker-compose exec -T backend bash /app/tests-start.sh "$@"
13+
docker compose build
14+
docker compose up -d
15+
docker compose exec -T backend bash /app/tests-start.sh "$@"

scripts/test.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ DOMAIN=backend \
77
SMTP_HOST="" \
88
TRAEFIK_PUBLIC_NETWORK_IS_EXTERNAL=false \
99
INSTALL_DEV=true \
10-
docker-compose \
10+
docker compose \
1111
-f docker-compose.yml \
1212
config > docker-stack.yml
1313

14-
docker-compose -f docker-stack.yml build celeryworker backend
15-
docker-compose -f docker-stack.yml down -v --remove-orphans # Remove possibly previous broken stacks left hanging after an error
16-
docker-compose -f docker-stack.yml up -d db queue celeryworker backend proxy flower
17-
docker-compose -f docker-stack.yml exec -T backend bash /app/tests-start.sh "$@"
18-
docker-compose -f docker-stack.yml down -v --remove-orphans
14+
docker compose -f docker-stack.yml build celeryworker backend
15+
docker compose -f docker-stack.yml down -v --remove-orphans # Remove possibly previous broken stacks left hanging after an error
16+
docker compose -f docker-stack.yml up -d db queue celeryworker backend proxy flower
17+
docker compose -f docker-stack.yml exec -T backend bash /app/tests-start.sh "$@"
18+
docker compose -f docker-stack.yml down -v --remove-orphans

0 commit comments

Comments
 (0)