123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #!/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)
- buildsolrnc:
- 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) solr-new
- buildphp:
- 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) php
- buildphpnc:
- 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) php
- up:
- docker-compose up -d
- upbuild:
- docker-compose up -d --build
- ps:
- docker-compose ps
- logs:
- docker-compose logs -f
- logs_redis:
- docker-compose logs -f redis
- down:
- docker-compose down
- restart_redis:
- docker-compose restart redis
- restart_php:
- docker-compose restart php
- restart_npm :
- docker-compose restart npm
- exec_php:
- docker exec -it edlpd8-php-1 bash
- exec_npm:
- docker exec -it edlpd8-npm-1 sh
- exec_mysql:
- docker exec -it edlpd8-mysql-1 bash
- redis:
- docker exec -it edlpd8-redis-1 bash
- dump_d8_db:
- docker exec edlpd8-mysql-1 sh -c 'exec mysqldump -uroot -pedlp edlp_d8' > ./ressources/edlp-d8-$(DATE_NOW)-local.sql
|