From d88ea7f26d54ca069b84f027fbae8837a45a683c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 16 Sep 2024 14:18:40 +0200 Subject: [PATCH] Use build+create in Docker installation instructions There was a typo where we said we were creating the containers but we were building the image. While none of these commands are necessary because they're run automatically when first running the `db:create` rake task, I think it's better to show them separately, since the `build` command might be used to rebuild the image, and running the `create` command separately makes it easier to know what's going on. We're also removing the "start database service" step, since it's automatically started because the app service depends on it. Finally, we're updating one command for macOS. --- docs/en/installation/docker.md | 6 +++--- docs/es/installation/docker.md | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/en/installation/docker.md b/docs/en/installation/docker.md index 4181b9b6e..101b43b6f 100644 --- a/docs/en/installation/docker.md +++ b/docs/en/installation/docker.md @@ -47,16 +47,16 @@ cp config/secrets.yml.example config/secrets.yml cp config/database-docker.yml.example config/database.yml ``` -Then you'll have to build the container with: +Then build the image with: ```bash POSTGRES_PASSWORD=password docker-compose build ``` -Start the database service: +And create the containers: ```bash -POSTGRES_PASSWORD=password docker-compose up -d database +POSTGRES_PASSWORD=password docker-compose create ``` You can now initialize your development DB and populate it with: diff --git a/docs/es/installation/docker.md b/docs/es/installation/docker.md index f458b1cd0..9b6c90d1b 100644 --- a/docs/es/installation/docker.md +++ b/docs/es/installation/docker.md @@ -47,19 +47,19 @@ cp config/secrets.yml.example config/secrets.yml cp config/database-docker.yml.example config/database.yml ``` -Y generamos el contenedor: +Ahora genera la imagen con: ```bash POSTGRES_PASSWORD=password docker-compose build ``` -Arrancamos el servicio de base de datos: +Y crea los contenedores: ```bash -POSTGRES_PASSWORD=password docker-compose up -d database +POSTGRES_PASSWORD=password docker-compose create ``` -Ahora podemos crear la base de datos e introducir datos de prueba: +Por Ășltimo, crea la base de datos e introduce datos de prueba: ```bash POSTGRES_PASSWORD=password docker-compose run app rake db:create db:migrate