Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow "run" and "develop" modes per service in the same fig.yml #489

Closed
stefanfoulis opened this issue Sep 18, 2014 · 2 comments
Closed

Comments

@stefanfoulis
Copy link

Note: needs a better title

We're using fig for development of our entire application, currently consisting of about 20 individual docker containers. This works great, but it takes for ages to build and some of our developers only work on a small subset of the services.

My proposition would be something along the lines of allowing to set both image and build on the same service. If you just need the service running locally, you could use the pre-built docker container defined in image and run that. If you're actively developing a service, you'd check out the source and build the container from the latest source locally by using build.

@dnephin
Copy link

dnephin commented Sep 18, 2014

This is a very similar to the problem I'm trying to solve with #318.

I don't think including both an image and build on the same service is a good path. It makes it less clear what is which is used (and including both is an error right now, so it's not backwards compatible in any way. Instead I've proposed tagging built images using #457.

To accomplish the setup you describe with these two additions, each service would create a local fig.yml that only knew about the service itself and it's immediate dependencies.

When a developer uses the local fig.yml it will use the build directive for the service, but any service from an "included external project" from #318 would use a tagged image.

This will probably also benefit from #467 to push the latest tags for each service to a registry (unless all development happens on a single machine).

@dnephin
Copy link

dnephin commented Sep 18, 2015

This work is being tracked in #1987

@dnephin dnephin closed this as completed Sep 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants