1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- #!/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
- 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
- api_maj_config: api_crd api_composer_install api_updb api_cim api_cr
- api_crd:
- docker exec enfrancais_api_1 /bin/bash -c "drush cache-clear drush"
- api_cr:
- docker exec enfrancais_api_1 /bin/bash -c "drush cr"
- api_updb:
- docker exec enfrancais_api_1 /bin/bash -c "drush updb -y"
- api_cim:
- docker exec enfrancais_api_1 /bin/bash -c "drush config-import -y"
- api_composer_install:
- docker exec enfrancais_api_1 /bin/bash -c "composer install --no-dev"
- down:
- docker-compose down
- exec_api:
- docker exec -it enfrancais_api_1 bash
- exec_app:
- docker exec -it enfrancais_app_1 sh
- exec_mysql:
- docker exec -it enfrancais_mysql_1 bash
|