From 08f80341c29850b1761fec0bf182fcaa465c2429 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 4 Jan 2024 15:20:17 +0100 Subject: [PATCH] build(docker): change docker-compose to docker compose in Makefile Signed-off-by: Thomas Citharel --- Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index c8b79d041..c4be98db4 100644 --- a/Makefile +++ b/Makefile @@ -4,25 +4,25 @@ init: setup: stop @bash docker/message.sh "Compiling everything" - docker-compose run --rm api bash -c 'mix deps.get; npm ci; npm run build:pictures; mix ecto.create; mix ecto.migrate' + docker compose run --rm api bash -c 'mix deps.get; npm ci; npm run build:pictures; mix ecto.create; mix ecto.migrate' migrate: - docker-compose run --rm api mix ecto.migrate + docker compose run --rm api mix ecto.migrate logs: - docker-compose logs -f + docker compose logs -f start: stop @bash docker/message.sh "Starting Mobilizon with Docker" - docker-compose up -d api + docker compose up -d api @bash docker/message.sh "Docker server started" stop: @bash docker/message.sh "Stopping Mobilizon" - docker-compose down + docker compose down @bash docker/message.sh "Mobilizon is stopped" test: stop @bash docker/message.sh "Running tests" - docker-compose -f docker-compose.yml -f docker-compose.test.yml run api mix prepare_test - docker-compose -f docker-compose.yml -f docker-compose.test.yml run api mix test $(only) + docker compose -f docker compose.yml -f docker compose.test.yml run api mix prepare_test + docker compose -f docker compose.yml -f docker compose.test.yml run api mix test $(only) @bash docker/message.sh "Done running tests" format: - docker-compose run --rm api bash -c "mix format && mix credo --strict" + docker compose run --rm api bash -c "mix format && mix credo --strict" @bash docker/message.sh "Code is now ready to commit :)" target: init