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

[nit] Migrate to docker compose v2 #53

Merged
merged 1 commit into from
Jun 7, 2023
Merged
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
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down