From 290c5c455d07d853d3bc002e2d1b5a2ccc18f1ef Mon Sep 17 00:00:00 2001 From: Henri Devigne Date: Sat, 10 Aug 2024 20:36:56 +0200 Subject: [PATCH 1/2] fix(installation): switch to new compose docker plugin --- docs/installation/docker.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/installation/docker.md b/docs/installation/docker.md index e36037e..ee22386 100644 --- a/docs/installation/docker.md +++ b/docs/installation/docker.md @@ -4,11 +4,11 @@ The Docker installation is the method to choose if you want to quickly deploy Op ## Requirements ## -The current documentation has been tested on **Debian 10** and **Ubuntu LTS 20.04** with the following requirements : +The current documentation has been tested on **Debian 10**, **Rocky Linux 9** and **Ubuntu LTS 20.04** with the following requirements : @@ -34,7 +34,7 @@ Update the following keys in the `opencve.cfg` file: - smtp_user & smtp_password if any or leave empty !!!tip - If you want to change the default postgresql password (strongly advised), you can add it in the `.env` file before the docker-compose build: + If you want to change the default postgresql password (strongly advised), you can add it in the `.env` file before the docker compose build: ``` POSTGRES_PASSWORD=MyStrongPassword42 @@ -51,13 +51,13 @@ Update the following keys in the `opencve.cfg` file: You can now build the OpenCVE image: ``` -$ docker-compose build +$ docker compose build ``` Then start everything except the beat: ``` -$ docker-compose up -d postgres redis webserver celery_worker +$ docker compose up -d postgres redis webserver celery_worker ``` ## Initialize the database ## @@ -104,7 +104,7 @@ Repeat for confirmation: The last step is to start the scheduler : ``` -$ docker-compose up -d celery_beat +$ docker compose up -d celery_beat ``` You can now use OpenCVE with your own dockerized instance of it. From 080b8ff45ea5c64775a1760d78e573eb57f008ac Mon Sep 17 00:00:00 2001 From: Henri Devigne Date: Sat, 10 Aug 2024 20:50:59 +0200 Subject: [PATCH 2/2] fix: scope docker commands to compose stack --- docs/installation/docker.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/installation/docker.md b/docs/installation/docker.md index ee22386..4fb527d 100644 --- a/docs/installation/docker.md +++ b/docs/installation/docker.md @@ -65,7 +65,7 @@ $ docker compose up -d postgres redis webserver celery_worker The database can be initialized with the following command: ``` -$ docker exec -it webserver opencve upgrade-db +$ docker compose exec -it webserver opencve upgrade-db ``` ## Import the data ## @@ -73,7 +73,7 @@ $ docker exec -it webserver opencve upgrade-db The tables are created, you can now populate them using the `import-data` command : ``` -$ docker exec -it webserver opencve import-data +$ docker compose exec -it webserver opencve import-data ``` This command download the list of CPE, the list of CWE and each CVE's year (from 2002 until now), so **it can take several minutes**. Don't worry you will only do it once. @@ -90,7 +90,7 @@ This command download the list of CPE, the list of CWE and each CVE's year (from You can now create the admin : ``` -$ docker exec -it webserver opencve create-user john john.doe@example.com --admin +$ docker compose exec -it webserver opencve create-user john john.doe@example.com --admin Password: Repeat for confirmation: [*] User john created.