123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #!/usr/bin/make
- SHELL = /bin/sh
- USER_UID := $(shell id -u)
- USER_UNAME := $(shell id -un)
- USER_GID := $(shell id -g)
- USER_GNAME := $(shell id -gn)
- DATE_NOW := $(shell date '+%Y-%m-%d_%H%M%S')
- export USER_UID
- export USER_UNAME
- export USER_GID
- export USER_GNAME
- build:
- docker-compose build --build-arg USER_UID=$(USER_UID) --build-arg USER_UNAME=$(USER_UNAME) --build-arg USER_GID=$(USER_GID) --build-arg USER_GNAME=$(USER_GNAME)
- buildnc:
- docker-compose build --no-cache --build-arg USER_UID=$(USER_UID) --build-arg USER_UNAME=$(USER_UNAME) --build-arg USER_GID=$(USER_GID) --build-arg USER_GNAME=$(USER_GNAME)
- buildncnginx:
- docker-compose build --no-cache --build-arg USER_UID=$(USER_UID) --build-arg USER_UNAME=$(USER_UNAME) --build-arg USER_GID=$(USER_GID) --build-arg USER_GNAME=$(USER_GNAME) nginx
- buildncnginx_static:
- docker-compose -f docker-compose-static.yml build --no-cache --build-arg USER_UID=$(USER_UID) --build-arg USER_UNAME=$(USER_UNAME) --build-arg USER_GID=$(USER_GID) --build-arg USER_GNAME=$(USER_GNAME) nginx_static
- up:
- docker-compose up -d
- up_static:
- docker-compose -f docker-compose-static.yml up -d
- down_static:
- docker-compose -f docker-compose-static.yml down
- restart_nginx:
- docker-compose restart nginx
- restart_nginx_static:
- docker-compose -f docker-compose-static.yml restart nginx_static
- # upbuild:
- # docker-compose up -d --build
- ps:
- docker-compose ps
- logs:
- docker-compose logs -f
- down:
- docker-compose down
- exec_phpd7:
- docker exec -it clameurs-phpd7-1 bash
- exec_mysqld7:
- docker exec -it clameurs-mysqld7-1 bash
- exec_nginx:
- docker exec -it clameurs-nginx-1 bash
- exec_npm:
- docker exec -it clameurs-npm-1 sh
- dump_d7_db:
- docker exec clameurs-mysqld7-1 sh -c 'exec mysqldump -uroot -pperfart perfart' > ./ressources/perfart_d7-$(DATE_NOW)-local.sql
|