Solve ldap errors

This commit is contained in:
Hugo Levy-Falk 2020-04-03 16:59:29 +02:00
parent d9bea9eb37
commit fe04a79d35
3 changed files with 12 additions and 2 deletions

View file

@ -48,4 +48,5 @@ RUN a2ensite re2o
# HERE WE GO
FROM re2o_apache as re2o
CMD service apache2 stop && python3 manage.py migrate && python3 manage.py collectstatic --noinput && python3 manage.py compilemessages && service apache2 start && sleep infinity
COPY ./re2o-dev.sh /var/www/re2o/
CMD bash re2o-dev.sh

View file

@ -5,7 +5,7 @@ This is simply a docker environment to dev re2o locally.
To use it :
* clone Re2o;
* copy `Dockerfile` and `docker-compose.yml` into the cloned directory;
* copy `Dockerfile`, `re2o-dev.sh` and `docker-compose.yml` into the cloned directory;
* copy `settings_local.py` into the `re2o` folder in the cloned directory;
* run `docker-compose up`

9
re2o-dev.sh Normal file
View file

@ -0,0 +1,9 @@
#! /bin/bash
service apache2 stop
python3 manage.py migrate
python3 manage.py collectstatic --noinput
python3 manage.py compilemessages
service apache2 start
service slapd start
sleep infinity