This repository has been archived by the owner on Oct 5, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
FoxMaSk
committed
Oct 26, 2017
1 parent
e8b1fb6
commit 2c45772
Showing
7 changed files
with
75 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ build | |
th_tox | ||
django_th/.env | ||
docs/_build | ||
htmlcov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
.. _docker: | ||
|
||
Docker Guide | ||
============ | ||
|
||
The docker file is based on `build <https://docs.docker.com/engine/reference/commandline/build/>`_ and | ||
`compose <https://docs.docker.com/compose/django/>`_ and a bit of `django hub <https://hub.docker.com/_/django/>`_ | ||
|
||
Build | ||
----- | ||
|
||
The first time you use the docker image of trigger happy, launch this command to build the image. | ||
|
||
This won't be necessary for the next time | ||
|
||
.. code-block:: bash | ||
docker-compose build | ||
Run | ||
--- | ||
|
||
This is necessary each time you want to use Trigger Happy | ||
|
||
.. code-block:: bash | ||
docker-compose up | ||
Database update/create | ||
---------------------- | ||
|
||
This is necessary the first time, after building the docker image done above. | ||
|
||
.. code-block:: bash | ||
docker-compose run web python manage.py migrate --settings=django_th.settings_docker | ||
docker-compose run web python manage.py initial_services --settings=django_th.settings_docker | ||
docker-compose run web python manage.py createsuperuser --settings=django_th.settings_docker | ||
This is necessary only when a new release of Trigger Happy is done | ||
|
||
.. code-block:: bash | ||
docker-compose run web python manage.py migrate --settings=django_th.settings_docker | ||
Running tasks | ||
------------- | ||
|
||
2 tasks are usually in the crontab: one to read the data source, one to publish the grabbed data: | ||
|
||
.. code-block:: bash | ||
docker-compose run web python manage.py read --settings=django_th.settings_docker | ||
docker-compose run web python manage.py publish --settings=django_th.settings_docker | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[flake8] | ||
max-line-length=80 | ||
max-line-length=120 | ||
exclude=migrations,*settings*.py,feedsservice,.tox,build,from_* | ||
|