Open rasodu opened 8 years ago
1) Variable name: ${DLEMP_BASE_DIR}
2) Files that will be changed:
This will solve three out of four scenarios
Dockerfile | Config-file | Status |
---|---|---|
Default | Default | Solved |
Custom | Default | Solved |
Custom | Custom | Solved |
Default | Custom | Not-Solved |
So in order to use custom config you must use custom dockerfile file to build the image.
Thought this can be easily supported when docker will allow 'ONBUILD COPY' without error. Read this: docker-docker issue 13045 You will just need to change all 'COPY' to 'ONBUILD COPY' to allow fourth scenario.
Also read this:
See if using 'COMPOSE_FILE' will make using the project easier. It will require two variables.
Read this: docker-compose issue 3125
Still need to decide if you should put the value in '.env' or 'docker-compose.env'. Wait till documentation is ready for docker compose and precedence of variable declaration in these two files is more clear. At this point docker-compose 1.7 is not released which supports this feature. This feature will be released with docker-toolbox 1.11.