biommap/Makefile

33 lines
1.2 KiB
Makefile
Raw Normal View History

2021-03-26 08:11:10 +00:00
GEONATURE_CITIZEN_TAG = 0.99.1-dev
2021-03-26 10:55:50 +00:00
.PHONY: start init dev
2021-03-26 08:11:10 +00:00
dev: init
2021-03-26 10:55:50 +00:00
docker image inspect geonature >/dev/null 2>&1 || docker build vendor/GeoNature-citizen -t geonature
2021-03-26 08:11:10 +00:00
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