GEONATURE_CITIZEN_TAG = 0.99.1-dev .PHONY: start init dev dev: init docker image inspect geonature >/dev/null 2>&1 || docker build vendor/GeoNature-citizen -t geonature docker container inspect geonature >/dev/null 2>&1 || (\ docker run -it -d -p 8080:80 --name geonature geonature &&\ docker cp patches/settings.ini geonature:config &&\ docker cp patches/start.sh geonature:. &&\ #docker cp patches/install_app.sh geonature:install/ &&\ #docker cp patches/models.py geonature:backend/gncitizen/core/taxonomy/ &&\ #docker cp patches/tsconfig.server.json geonature:frontend/src/ &&\ docker exec -it geonature install/install_app.sh) xdg-open http://localhost:8080 init: vendor/GeoNature-citizen git submodule update --init --recursive vendor/GeoNature-citizen: -mkdir -p vendor git submodule add https://github.com/Champs-Libres/GeoNature-citizen.git vendor/GeoNature-citizen git commit -m "added submodule GeoNature-citizen" #cd $@ && git checkout $(GEONATURE_CITIZEN_TAG) doc: cd vendor/GeoNature-citizen/docs && make html xdg-open $(shell pwd)/vendor/GeoNature-citizen/docs/_build/html/index.html clean: docker stop geonature docker rm geonature docker volume prune