...
 
Commits (11)
......@@ -62,6 +62,11 @@ Each container may contain a set of scripts for admin purpose (especially for ma
- `/dk/image_upgrade` apply security upgrades to the image. This command is expected to exit with 0 if successful and to output something on stdout/stderr when something was upgraded an nothing if nothing was upgraded (thus if the output is empty, it is not necessary to commit a new image).
Constraints
-----------
* The deployment repository has to be named *allgo*, because docker-compose names its network with <dir_name> prefix, and we used this network name in some parts.
Development environment
-----------------------
......@@ -161,7 +166,7 @@ The official doc for docker-compose is available at: [https://docs.docker.com/co
- start all containers (in the foreground, i.e interactively, when you hit Ctrl-C all containers are stop)
<pre>
fig up -d
fig up
</pre>
- soft cleanup (stop and remove all containers)
......
......@@ -723,6 +723,10 @@ export PATH="$PATH:/.toolbox/bin"
touch /root/.Xauthority
chmod 600 /root/.Xauthority
# unlock the root account in /etc/shadow
# (needed at least on Fedora)
usermod --unlock root
exec /.toolbox/bin/sshd -D
""".format(prepare=prepare)]
......
#! /bin/bash
# TODO: the command should be placed in the Makefile or an official doc.
# It should be ran in the django container.
# cf https://django-extensions.readthedocs.io/en/latest/graph_models.html
python3 ./manage.py graph_models --all-applications --group-models --output allgo_model.png
docker exec dev-django python3 ./manage.py graph_models --all-applications --group-models --output docs/allgo_model.png
......@@ -24,13 +24,12 @@ Mandatory
Optional
^^^^^^^^
For development purposes you can install several optional dependencies such as
Sphinx, etc. The complete list is available in the `requirements_dev.txt` and
can be installed through pip.
For development purposes you can install optional dependencies such as
Sphinx. They can be installed through pip.
.. code-block:: bash
pip install -r requirements_dev.txt
pip install sphinx
Development environment
......
pip>=9.0.2
Sphinx==1.7.2
sphinxcontrib-napoleon==0.6.1
bumpversion==0.5.3
flake8==3.5.0
coverage==4.5.1
tox==2.9.1
pytest==3.4.2
click==6.7
pypandoc==1.4
beautifulsoup4==4.6.0