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
possible to have Dockerfile FROM point to another fig-defined service? #583
I have a use case where the images should not be pushed to a registry, but there is a high amount of duplication between the Dockerfiles for 2 or more services in my fig.yml.
Is it possible to have fig pre-parse the Dockerfiles it is about to use so that it can fix up references between images created for fig-defined services as in the below example?
fig.yml
a:
build: ./a/
b:
build ./b/
b/Dockerfile
FROM a
# OR
FROM fig://a
# OR
FROM project_a
# ...
The expected behaviour would be to determine which image that service is using (or would use if it were instantiated) and replace the FROM reference accordingly to point to the indicated service's image.
Activity
jokeyrhyme commentedon Oct 24, 2014
The expected behaviour would be to determine which image that service is using (or would use if it were instantiated) and replace the FROM reference accordingly to point to the indicated service's image.
jokeyrhyme commentedon Oct 30, 2014
This wouldn't be necessary at all if upstream docker supported
IMPORTorINCLUDEstatements: moby/moby#735dnephin commentedon Sep 18, 2015
I believe this is very similar to #295 and #610, going to close as a duplicate.
I've also linked this up from #1455