Skip to content

Commit

Permalink
added example with docker exec
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Feb 27, 2018
1 parent a0c9d31 commit 7e094de
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/source/tutorial/using_docker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ Use `docker-compose <https://docs.docker.com/compose/install/>`_ (you need a rec
$ docker-compose up -d
$ docker-compose logs emu
Execute ``tail`` command in the running container to see the logs::

$ docker ps # get the container name
NAMES
emu_emu_1
$ docker exec -it emu_emu_1 tail -f /opt/birdhouse/var/log/supervisor/emu.log
$ docker exec -it emu_emu_1 tail -f /opt/birdhouse/var/log/pywps/emu.log

You can change the ports and hostname with environment variables:

.. code-block:: sh
Expand All @@ -88,3 +96,10 @@ Now the WPS is available on port 8094: http://emu:8094/wps?service=WPS&version=1

You can also customize the ``docker-compose.yml`` file.
See the `docker-compose documentation <https://docs.docker.com/compose/environment-variables/>`_.

Build image using docker-compose
--------------------------------

You can build locally a new docker image from the Dockerfile by running docker-compose::

$ docker-compose build

0 comments on commit 7e094de

Please sign in to comment.