initial commit

This commit is contained in:
Christophe Siraut
2021-03-26 09:11:10 +01:00
commit f45f5bb274
7 changed files with 480 additions and 0 deletions

32
Makefile Normal file
View File

@@ -0,0 +1,32 @@
GEONATURE_CITIZEN_TAG = 0.99.1-dev
.PHONY: start init
dev: init
docker image inspect geonature >/dev/null 2>&1 || docker build -f vendor/GeoNature-citizen/Dockerfile -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