You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to use images, which are build in the same stack? #1548
That does work, but I suspect you're trying to launch some sort of development environment. If that's true, I find more effective to use a prebuilt interpreter image (i.e. ruby, php, etc) which should run an app from a specific folder in the container, into which you could mount your app code.
This way you'd be spared from building the entire app container whenever your code changes.
@josephpage As said, this leads to other problems, see #1175 for details.
I find more effective to use a prebuilt interpreter image (i.e. ruby, php, etc) which should run an app from a specific folder in the container, into which you could mount your app code.
@vovimayhem We're using that approach in development and it's fine to use host-volumes there, but unfortunately that's no solution for production environments.
I switched to two builds for now, just in case if you're asking yourself about the setup ... the appsrc container may be dropped in development, but we need it in Testing and CI, otherwise we're getting circular dependencies.
Activity
josephpage commentedon Jun 17, 2015
Just like this :
The build process will use cache for the 2 last services, and will be very quick.
vovimayhem commentedon Jun 17, 2015
That does work, but I suspect you're trying to launch some sort of development environment. If that's true, I find more effective to use a prebuilt interpreter image (i.e. ruby, php, etc) which should run an app from a specific folder in the container, into which you could mount your app code.
This way you'd be spared from building the entire app container whenever your code changes.
I have an example rails project using docker-compose that you can check out.
schmunk42 commentedon Jun 18, 2015
@josephpage As said, this leads to other problems, see #1175 for details.
@vovimayhem We're using that approach in development and it's fine to use host-volumes there, but unfortunately that's no solution for production environments.
I switched to two builds for now, just in case if you're asking yourself about the setup ... the
appsrccontainer may be dropped in development, but we need it in Testing and CI, otherwise we're getting circular dependencies.dnephin commentedon Oct 26, 2015
We added a new flag to
pullto skip these errors for this kind of scenario in #2032It will be in the 1.5.0 release, and is in master builds now (https://dl.bintray.com/docker-compose/master/)