Skip to content

Commit

Permalink
improve docker compose setup documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
b-fein committed Nov 18, 2024
1 parent 745c7f7 commit 9474a86
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 5 additions & 6 deletions docs/dev/setup/docker-compose.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Getting Started with Docker Compose
Make sure that Docker Desktop has enough memory (~ 6GB). To adapt it, go to ``Settings -> Resources``.

2. Check that all local network ports used by Docker Compose are free (e.g. you haven't started a local MySQL server
when you would like to start a Docker Compose instance of mysql)
when you would like to start a Docker Compose instance of MySQL).
3. Run ``docker compose pull && docker compose up`` in the directory ``docker/``
4. Open the Artemis instance in your browser at https://localhost
5. Run ``docker compose down`` in the directory ``docker/`` to stop and remove the docker containers
Expand Down Expand Up @@ -62,13 +62,12 @@ Three example commands to run such setups:

.. code:: bash
docker compose -f docker/atlassian.yml up
docker compose -f docker/mysql.yml -f docker/gitlab-jenkins.yml up
docker compose -f docker/artemis-dev-postgres.yml up
.. tip::
There is also a single ``docker-compose.yml`` in the directory ``docker/`` which mirrors the setup of ``artemis-prod-mysql.yml``.
This should provide a quick way, without manual changes necessary, for new contributors to startup an Artemis instance.
This should provide a quick way, without manual changes necessary, for new contributors to start up an Artemis instance.
If the documentation just mentions to run ``docker compose`` without a ``-f <file.yml>`` argument, it's
assumed you are running the command from the ``docker/`` directory.

Expand All @@ -82,7 +81,7 @@ is defined in the following files:
* ``gitlab.yml``: **GitLab Service**
* ``jenkins.yml``: **Jenkins Service**

For testing mails or SAML logins, you can append the following services to any setup with an artemis container:
For testing mails or SAML logins, you can append the following services to any setup with an Artemis container:

* ``mailhog.yml``: **Mailhog Service** (email testing tool)
* ``saml-test.yml``: **Saml-Test Service** (SAML Test Identity Provider for testing SAML features)
Expand Down Expand Up @@ -145,7 +144,7 @@ Get a shell into the containers
``docker compose exec artemis-app bash`` or if the container is not yet running:
``docker compose run --rm artemis-app bash``
- mysql container:
``docker compose exec mysql bash`` or directly into mysql ``docker compose exec mysql mysql``
``docker compose exec mysql bash`` or directly into MySQL ``docker compose exec mysql mysql``

Analog for other services.

Expand All @@ -157,7 +156,7 @@ Other useful commands
- Stop, remove containers and volumes: ``docker compose down -v``
- Remove Artemis-related volumes/state: ``docker volume rm artemis-data artemis-mysql-data``

This is helpful in setups where you just want to delete the state of artemis
This is helpful in setups where you just want to delete the state of Artemis
but not of Jenkins and GitLab for instance.
- Stop a service: ``docker compose stop <name of the service>`` (restart via
``docker compose start <name of the service>``)
Expand Down
3 changes: 2 additions & 1 deletion docs/dev/setup/jenkins-gitlab.rst
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,8 @@ and the corresponding Docker image can be found on

.. code:: bash
docker compose -f docker/<Jenkins setup to be launched>.yml up --build -d
docker compose -f docker/<Jenkins setup to be launched>.yml build --no-cache
docker compose -f docker/<Jenkins setup to be launched>.yml up -d
3. Build the new Docker image:

Expand Down

0 comments on commit 9474a86

Please sign in to comment.