Giscube admin Applications:
- imageserver
- qgisserver
- geoportal
ln -s requirements-gdal3.txt requirements.txt ln -s requirements-gdal2.txt requirements.txt
geoportal.Dataset.active: enable/disable usage
geoportal.Dataset.visibility: visibility='Private' restricts usage to authenticated users
imageserver.Service.active: enable/disable usage
imageserver.Service.visibility: visibility='Private' restricts usage to authenticated users
imageserver.Service.visible_on_geoportal: enable/disable geoportal indexation
qgisserver.Service.active: enable/disables usage
qgisserver.Service.visibility: visibility='Private' restricts usage to authenticated users
qgisserver.Service.visible_on_geoportal: enable/disable geoportal indexation
layerserver.GeoJsonLayer.active: enable/disables usage
qgisserver.Service.visibility: visibility='Private' restricts usage to authenticated users
layerserver.GeoJsonLayer.visible_on_geoportal: enable/disable geoportal indexation
layerserver.DataBaseLayer.active: enable/disables usage
layerserver.DataBaseLayer.visible_on_geoportal: enable/disable geoportal indexation
Copy app.env-example to app.env and adjust values as necessary
Optional because the next step does it by default (default values only) By default it installs the development requirements (requirements-devel.txt)
docker-compose build
It's also possible to define to not install development requirements:
docker-compose build --build-arg EXTRA_REQUIREMENTS=''
Or another extra requirement like deploy (requirements-deploy.txt):
docker-compose build --build-arg EXTRA_REQUIREMENTS=deploy
docker-compose up
In background:
docker-compose up -d
docker-compose up django
docker-compose start docker-compose stop
docker-compose down
docker-compose restart && docker-compose logs -f
docker-compose restart django && docker-compose logs -f
docker-compose exec django bash.sh
docker-compose exec django bash.sh python3 manage.py migrate
docker-compose exec django bash.sh python3 manage.py createsuperuser
docker-compose exec django bash.sh python3 manage.py collectstatic
docker-compose exec django bash.sh /bin/bash scripts/run_tests.sh
Automatic script:
docker-compose exec db bash docker/db/db_init.sh
or
docker-compose exec db bash docker/db/db_init.sh giscube.sql
Automatic script:
docker-compose exec db bash docker/db/db_catalan_dictionary.sh