Use docker-compose instead of docker for exec

This commit is contained in:
Vincent Letourneau
2017-08-08 10:15:36 +02:00
parent dba3a26d58
commit 1cdf44654d

View File

@@ -26,7 +26,7 @@ init:
@$(shell cp -n $(shell pwd)/web/app/composer.json.dist $(shell pwd)/web/app/composer.json 2> /dev/null)
apidoc:
@docker exec $(shell docker-compose ps -q php) app/vendor/bin/apigen generate app/src --destination app/doc
@docker-compose exec php ./app/vendor/bin/apigen generate app/src --destination app/doc
@make resetOwner
clean:
@@ -40,19 +40,16 @@ clean:
code-sniff:
@echo "Checking the standard code..."
@docker exec $(shell docker-compose ps -q php) app/vendor/bin/phpcs --standard=PSR2 app/src
@docker-compose exec php app/vendor/bin/phpcs --standard=PSR2 app/src
composer-up:
@docker run --rm -v $(shell pwd)/web/app:/app composer update
docker-start: init
@echo "Docker is running..."
docker-compose up -d
docker-stop:
@docker-compose stop
@docker-compose kill
@docker-compose rm -f
@docker-compose down -v
@make clean
gen-certs: