Compare commits

...

4 Commits

Author SHA1 Message Date
cayop 5a89c7e6e6 Merge pull request 'idhub_init_data' (#1) from idhub_init_data into main
Reviewed-on: https://gitea.pangea.org/trustchain-oc1-orchestral/docker/pulls/1
2023-11-03 13:00:56 +00:00
Cayo Puigdefabregas be4e1dc700 add docker_down 2023-11-03 13:52:44 +01:00
Cayo Puigdefabregas fd3014afd7 add creating initial datas as command 2023-11-03 13:28:17 +01:00
Cayo Puigdefabregas 40617b7cfe add creating initial datas 2023-11-03 12:01:12 +01:00
2 changed files with 6 additions and 0 deletions

View File

@ -50,3 +50,6 @@ docker_publish:
docker:
$(MAKE) docker_build
$(MAKE) docker_publish
docker_down:
docker compose down -v

View File

@ -17,6 +17,9 @@ main() {
# move the migrate thing in docker entrypoint
# inspired by https://medium.com/analytics-vidhya/django-with-docker-and-docker-compose-python-part-2-8415976470cc
./manage.py migrate
printf "creating initial Datas\n" >&2
./manage.py initial_datas
#./manage.py collectstatic
printf "creating superuser \n user: ${DJANGO_SUPERUSER_USERNAME}\n password: ${DJANGO_SUPERUSER_PASSWORD}\n email: ${DJANGO_SUPERUSER_EMAIL}\n" >&2