1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- #!/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
- # export DATE_NOW
- pull:
- docker-compose pull
- 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)
- downbuildup: down build up
- up:
- docker-compose up -d
- ps:
- docker-compose ps
- logs:
- docker-compose logs -f
- maj_config: crd composer_install updb cim cac cr #pag
- crd:
- docker exec reha-php-1 /bin/bash -c "drush cache-clear drush"
- composer_install:
- docker exec reha-php-1 /bin/bash -c "composer install --no-dev"
- updb:
- docker exec reha-php-1 /bin/bash -c "drush updb -y"
- cim:
- docker exec reha-php-1 /bin/bash -c "drush config-import -y"
- cac:
- docker exec reha-php-1 /bin/bash -c "drush content_as_config:import block_content --style=safe && drush content_as_config:import menu_link_content --style=safe"
- cr:
- docker exec reha-php-1 /bin/bash -c "drush cr"
- pag:
- docker exec reha-php-1 /bin/bash -c "drush pag all canonical_entities:node && drush pag all canonical_entities:taxonomy_term"
- restart_nginx:
- docker-compose restart nginx
- restart_php:
- docker-compose restart php
- down:
- docker-compose down
- exec_nginx:
- docker exec -it reha-nginx-1 bash
- exec_php:
- docker exec -it reha-php-1 bash
- exec_mysql:
- docker exec -it reha-mysql-1 bash
- dump_db:
- docker exec reha-mysql-1 sh -c 'exec mysqldump -uroot -preha reha' > ./ressources/reha-$(DATE_NOW)-local.sql
|