Skip to content

Commit

Permalink
docs: docker image separated by dash not underscore, typo ) (#453)
Browse files Browse the repository at this point in the history
* docs: docker image separated by dash not underscore, typo )

Signed-off-by: Serhii <jshmitz@me.com>

* docs: fixed output of docker ps command

Signed-off-by: Serhii <jshmitz@me.com>
  • Loading branch information
joyshmitz committed Jul 4, 2022
1 parent 43aa25d commit cc70d03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions documentation/dev/docker-compose.rst
Expand Up @@ -44,9 +44,9 @@ Check ``docker ps`` or ``docker-compose ps`` to see if your containers are runni
± docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
dda1a8606926 flexmeasures_server "bash -c 'flexmeasur…" 43 seconds ago Up 41 seconds (healthy) 0.0.0.0:5000->5000/tcp flexmeasures_server_1
27ed9eef1b04 postgres "docker-entrypoint.s…" 2 days ago Up 42 seconds 5432/tcp flexmeasures_dev-db_1
90df2065e08d postgres "docker-entrypoint.s…" 2 days ago Up 42 seconds 5432/tcp flexmeasures_test-db_1
dda1a8606926 flexmeasures_server "bash -c 'flexmeasur…" 43 seconds ago Up 41 seconds (healthy) 0.0.0.0:5000->5000/tcp flexmeasures-server-1
27ed9eef1b04 postgres "docker-entrypoint.s…" 2 days ago Up 42 seconds 5432/tcp flexmeasures-dev-db-1
90df2065e08d postgres "docker-entrypoint.s…" 2 days ago Up 42 seconds 5432/tcp flexmeasures-test-db-1
The FlexMeasures container has a health check implemented, which is reflected in this output and you can see which ports are available on your machine to interact.
Expand Down Expand Up @@ -78,6 +78,6 @@ After you've started the compose stack with ``docker-compose up``, run:

.. code-block:: console
docker exec -it -e SQLALCHEMY_TEST_DATABASE_URI="postgresql://fm-test-db-user:fm-test-db-pass@test-db:5432/fm-test-db" flexmeasures_server_1 pytest
docker exec -it -e SQLALCHEMY_TEST_DATABASE_URI="postgresql://fm-test-db-user:fm-test-db-pass@test-db:5432/fm-test-db" flexmeasures-server-1 pytest
This rounds up the dev experience offered by running FlexMeasures in Docker. Now you can develop FlexMeasures and also run your tests. If you develop plugins, you could extend the command being used, e.g. ``bash -c "cd /path/to/my/plugin && pytest"``.

0 comments on commit cc70d03

Please sign in to comment.