From 0692da9b311c8a6ec3d131ac4c538b3bca2adbaa Mon Sep 17 00:00:00 2001 From: Stefan Utamaru Date: Wed, 7 Jun 2023 23:02:59 +0900 Subject: [PATCH] [nit] migrate to docker compose v2 ref. https://docs.docker.com/compose/migrate/ --- Makefile | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 267d922..3032ace 100644 --- a/Makefile +++ b/Makefile @@ -26,12 +26,12 @@ INSERTS := "INSERT INTO users (username, email) VALUES ('gopher', 'gopher@go.com MYSQLCMD=mysql ifndef CI - MYSQLCMD=docker-compose exec mysql mysql + MYSQLCMD=docker compose exec mysql mysql endif PSQLCMD=psql ifndef CI - PSQLCMD=docker-compose exec postgres psql + PSQLCMD=docker compose exec postgres psql endif test: mysql psql diff --git a/README.md b/README.md index 076351c..4702a97 100644 --- a/README.md +++ b/README.md @@ -59,9 +59,9 @@ Every time you will run this application, it will remain in the same state as be Usage is mainly intended for testing purposes. See the **db_test.go** as an example. In order to run tests, you will need docker and -docker-compose: +docker compose: - docker-compose up + docker compose up make test The tests are currently using `postgres` and `mysql` databases