-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Include external config #758
Conversation
We already have a solid use case for this functionality (combined with --no-recreate) where we have an etl fig setup that prepares docs to load into an elasticsearch cluster, and an app fig that has an elasticsearch that it is setup to read from. The app fig (which is 4 containers or so) can run independently of the ETL fig setup. Fire up the ETL containers, process some data, shut them down, and the app now has the data brought into it. Very cool imho. |
… adding includes. Signed-off-by: Daniel Nephin <[email protected]>
Signed-off-by: Daniel Nephin <[email protected]>
Signed-off-by: Daniel Nephin <[email protected]>
c29e80b
to
5b82cdd
Compare
OK, just had a read over. Promising stuff. Thoughts, in decreasing order of (aha) import:
|
Thanks for the feedback!
|
Signed-off-by: Daniel Nephin <[email protected]>
64cfb53
to
b31f9a2
Compare
|
||
|
||
def get_project_from_file(url): | ||
# Handle urls in the form file://./some/relative/path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this handle files in local directories? If not, it would be great if it did :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, I believe that relative paths were working.
I should say that this implementation will probably change quite a bit. It was more of a proof-of-concept
@dnephin reviewed this patch looks solid - although needs a rebase. Can we have this in master soon? :) |
Code looks good to me. |
+1 on needing to rebase this. |
Any progress on trying to rebase this and get it in? Would love to be able to use this. |
@scottbelden Not yet, it still needs a lot of work, and probably the removal of some features for an initial release. I think I might try and extract this code as a separate tool that can be used to pipe to stdin once #1488 is merged. Once that's ready, I'll leave a comment in this PR. |
I've implemented this as an external pre-processing tool at https://github.com/dnephin/compose-addons#dcao-include If anyone is interested, please check out the docs. Any feedback can be contributed by opening an issue on that repo (and would be appreciated). |
Resolves #318
Adds support for including other
fig.yml
files by url (or relative path).Requires an additional
fig.yml
key ofproject-config
to support additional configuration. I would see this being used for things like project name as well.Feedback welcome