Changing the composer/composer image by the official image much lighter and updated

Minor update of commands related to Composer
This commit is contained in:
Vincent Letourneau
2017-08-03 13:33:57 +02:00
parent e479945f53
commit 80fd60aea2
3 changed files with 5 additions and 5 deletions

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) @$(shell cp -n $(shell pwd)/web/app/composer.json.dist $(shell pwd)/web/app/composer.json 2> /dev/null)
apidoc: apidoc:
@docker exec $(shell docker-compose ps -q php) app/vendor/apigen/apigen/bin/apigen generate -s app/src -d app/doc @docker exec $(shell docker-compose ps -q php) app/vendor/bin/apigen generate app/src --destination app/doc
@make resetOwner @make resetOwner
clean: clean:
@@ -43,7 +43,7 @@ code-sniff:
@docker exec $(shell docker-compose ps -q php) app/vendor/bin/phpcs --standard=PSR2 app/src @docker exec $(shell docker-compose ps -q php) app/vendor/bin/phpcs --standard=PSR2 app/src
composer-up: composer-up:
@docker run --rm -v $(shell pwd)/web/app:/app composer/composer update @docker run --rm -v $(shell pwd)/web/app:/app composer update
docker-start: init docker-start: init
@echo "Docker is running..." @echo "Docker is running..."

View File

@@ -249,13 +249,13 @@ make help
### Updating PHP dependencies with composer ### Updating PHP dependencies with composer
```sh ```sh
sudo docker run --rm -v $(pwd)/web/app:/app composer/composer update sudo docker run --rm -v $(pwd)/web/app:/app composer update
``` ```
### Generating PHP API documentation ### Generating PHP API documentation
```sh ```sh
sudo docker exec $(sudo docker-compose ps -q php) php ./app/vendor/apigen/apigen/bin/apigen generate -s app/src -d app/doc sudo docker exec $(sudo docker-compose ps -q php) ./app/vendor/bin/apigen generate app/src --destination app/doc
``` ```
### Testing PHP application with PHPUnit ### Testing PHP application with PHPUnit

View File

@@ -20,7 +20,7 @@ services:
- "./etc/php/php.ini:/usr/local/etc/php/conf.d/php.ini" - "./etc/php/php.ini:/usr/local/etc/php/conf.d/php.ini"
- "./web:/var/www/html" - "./web:/var/www/html"
composer: composer:
image: composer/composer image: "composer"
volumes: volumes:
- "./web/app:/app" - "./web/app:/app"
command: install command: install