TYPO3-docker-boilerplate icon indicating copy to clipboard operation
TYPO3-docker-boilerplate copied to clipboard

Create tasks breaks the container

Open stucki opened this issue 8 years ago • 2 comments

Running make create typo3 deletes the folder app/ before it's created again. This breaks further execution of make bash etc. because the folder is now found at a different inode:

$ git:(master) ✗  make bash    
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
application@ac32b1160390:.$ 

stucki avatar Jul 11 '16 15:07 stucki

My suggestion is to replace

rm -rf -- "$CODE_DIR"

with

rm -f -- "$CODE_DIR/.gitkeep"
rm -rf -- "$CODE_DIR/web/"

stucki avatar Jul 11 '16 15:07 stucki

Quick workaround which does not need code manipulation: docker-compose restart

tbal avatar Jan 22 '17 17:01 tbal