123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- #!/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)
- 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)
- up:
- docker-compose up -d
- upbuild:
- docker-compose up -d --build
- ps:
- docker-compose ps
- logs:
- docker-compose logs -f
- down:
- docker-compose down
- maj_config: crd composer_install updb cim structsync cr
- crd:
- docker exec popsucoloque-php-1 /bin/bash -c "vendor/bin/drush @self.colloque2021 cache-clear drush"
- docker exec popsucoloque-php-1 /bin/bash -c "vendor/bin/drush @self.colloque2024 cache-clear drush"
- composer_install:
- docker exec popsucoloque-php-1 /bin/bash -c "composer install --no-dev"
- updb:
- docker exec popsucoloque-php-1 /bin/bash -c "vendor/bin/drush @self.colloque2021 updb -y"
- docker exec popsucoloque-php-1 /bin/bash -c "vendor/bin/drush @self.colloque2024 updb -y"
- cim:
- docker exec popsucoloque-php-1 /bin/bash -c "vendor/bin/drush @self.colloque2021 config-import -y"
- docker exec popsucoloque-php-1 /bin/bash -c "vendor/bin/drush @self.colloque2024 config-import -y"
- structsync:
- docker exec popsucoloque-php-1 /bin/bash -c "vendor/bin/drush @self.colloque2024 ia --choice="safe" -y"
- cr:
- docker exec popsucoloque-php-1 /bin/bash -c "vendor/bin/drush @self.colloque2021 cr"
- docker exec popsucoloque-php-1 /bin/bash -c "vendor/bin/drush @self.colloque2024 cr"
- exec_php:
- docker exec -it popsucoloque-php-1 bash
- exec_nginx:
- docker exec -it popsucoloque-nginx-1 bash
- exec_mysql:
- docker exec -it popsucoloque-mysql-1 bash
- restart_php:
- docker-compose restart php
- restart_nginx:
- docker-compose restart nginx
- dump_db:
- docker exec popsucoloque-mysql-1 sh -c 'exec mysqldump -uroot -ppopsu colloque21' > ./ressources/colloque21-$(DATE_NOW)-local.sql
- docker exec popsucoloque-mysql-1 sh -c 'exec mysqldump -uroot -ppopsu colloque24' > ./ressources/colloque24-$(DATE_NOW)-local.sql
|