etat_libre_2020/makefile

23 lines
862 B
Makefile
Raw Normal View History

2020-05-10 04:21:41 +00:00
build:
docker network create librenet
2020-05-17 02:16:41 +00:00
bash fix_sql.sh
2020-05-10 04:21:41 +00:00
docker build --tag=etatdulibre .
docker run --name=etatdulibre --mount source=el_pgdata,target=/var/lib/postgresql/data --network=librenet -it -p 5432:5432 -p 2222:22 etatdulibre
2020-05-17 02:16:41 +00:00
docker run --name=pgadminlibre --network=librenet -p 80:80 -e 'PGADMIN_DEFAULT_EMAIL=etatdulibre@librenet' -e 'PGADMIN_DEFAULT_PASSWORD=etatdulibre' -e 'PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION=True' -e 'PGADMIN_CONFIG_LOGIN_BANNER="Authorised users only!"' -e 'PGADMIN_CONFIG_CONSOLE_LOG_LEVEL=10' -d dpage/pgadmin4
2020-05-10 04:21:41 +00:00
run:
docker start etatdulibre
2020-05-17 02:16:41 +00:00
docker start pgadminlibre
stop:
-bash backup.sh
-docker stop etatdulibre
-docker stop pgadminlibre
2020-05-10 04:21:41 +00:00
clean:
2020-05-18 16:18:24 +00:00
-docker container rm etatdulibre
-docker container rm pgadminlibre
-docker image rm etatdulibre
2020-05-10 04:21:41 +00:00
-docker network rm librenet
-docker volume rm el_pgdata