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

Support urls as config files #555

Closed

Conversation

Mjaethers
Copy link

Closes #554.

When ingesting the config files if one is detected to be a URL instead of a file path a http get request is sent and the underlying file is read.
If the base file is a URL the working directory is set to the user working directory.

Tests that compare using a URL and using local files to create a project have been included.

Signed-off-by: Matthew Humphreys <ge65yay@tum.de>
Signed-off-by: Matthew Humphreys <ge65yay@tum.de>
@ndeloof
Copy link
Collaborator

ndeloof commented Feb 5, 2024

You should rely on ResourceLoader to support accessing a (remote) compose file over HTTP(s)

@Mjaethers
Copy link
Author

I think we may be misunderstanding each other. As far as I can tell a ResourceLoader is used to load a remote service specified within the local compose file. What I am trying to do is add a way of specifying a compose file when calling docker compose -f <filename> build so that <filename> can also be a URL.

@ndeloof
Copy link
Collaborator

ndeloof commented Feb 27, 2024

sure, but still: ResourceLoader is the way to load non-local files, and get a local (cached) copy. Support for docker compose -f git://xxx should rely on it for homogeneity with other places we support this feature

@Mjaethers
Copy link
Author

Right, I understand now. I'll make the changes

@Mjaethers Mjaethers closed this Feb 29, 2024
@Mjaethers Mjaethers deleted the 554-support-urls-as-config-files branch February 29, 2024 13:11
@Mjaethers Mjaethers restored the 554-support-urls-as-config-files branch February 29, 2024 13:32
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

Successfully merging this pull request may close these issues.

Support URLs as config files
2 participants