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:
4
Makefile
4
Makefile
@@ -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/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
|
||||
|
||||
clean:
|
||||
@@ -43,7 +43,7 @@ code-sniff:
|
||||
@docker exec $(shell docker-compose ps -q php) app/vendor/bin/phpcs --standard=PSR2 app/src
|
||||
|
||||
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
|
||||
@echo "Docker is running..."
|
||||
|
||||
@@ -249,13 +249,13 @@ make help
|
||||
### Updating PHP dependencies with composer
|
||||
|
||||
```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
|
||||
|
||||
```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
|
||||
|
||||
@@ -20,7 +20,7 @@ services:
|
||||
- "./etc/php/php.ini:/usr/local/etc/php/conf.d/php.ini"
|
||||
- "./web:/var/www/html"
|
||||
composer:
|
||||
image: composer/composer
|
||||
image: "composer"
|
||||
volumes:
|
||||
- "./web/app:/app"
|
||||
command: install
|
||||
|
||||
Reference in New Issue
Block a user