sulu / sulu-docker

Development environment for the Sulu content management platform based on docker-compose
https://sulu.io
MIT License
27 stars 17 forks source link

Getting InvalidArgumentException when creating a new composer project inside container #30

Closed mareksuscak closed 5 years ago

mareksuscak commented 5 years ago

The reason being that the target folder is not empty.

image

wachterjohannes commented 5 years ago

hmm which file do you have inside this folder?

mareksuscak commented 5 years ago

A mapped /var folder as specified in docker-compose.yml.

I saw no benefit in mapping some of the volumes (such as mysql data volume) to the project folder so I changed it. I also saw no benefit in mapping logs since Sulu spits them out into the project folder already and I don't need to access mysql or elasticsearch logs. I can always see the output of the container itself, should I need to do so.

wachterjohannes commented 5 years ago

your totally right - i have adopted the create-project documentation to use docker image of composer before starting the application containers - see https://github.com/wachterjohannes/sulu-docker/pull/32