From 2ecb73438372b8b4d9ca59264aed7a36ec1e0d13 Mon Sep 17 00:00:00 2001 From: Mikko Heikkinen Date: Thu, 21 Nov 2024 23:06:23 +0200 Subject: [PATCH] Improve readme by updating docker commands --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8ac80c2..40ec25c 100644 --- a/README.md +++ b/README.md @@ -36,9 +36,7 @@ The 100 Species Challenge (Sata lajia -haaste) project is funded by [Kone Founda - Copy `.env.example` to `.env` and configure variables - Copy `playwright.example.env` to `playwright.env` for testing - Build Docker image `docker build -t species-challenge:latest .` -- Startup with one of these commands: - - With Playwright: `docker-compose up build playwright; docker-compose down;` - - Without Playwright: `docker-compose up; docker-compose down;` +- Startup `docker compose up; docker compose down;` - Initialize database: - Access phpMyAdmin at http://localhost:8080 - Import `./sql/species_challenge_dev.sql` @@ -47,7 +45,7 @@ The application will be visible http://localhost:8081 ## Running tests -- Run the app with `docker-compose up; docker-compose down;` +- Run the app - Login to playwright container with `docker exec -ti species-challenge-playwright-1 bash` - Run tests with `python -m pytest -v -s`. The `-s` option enables print outputs.