-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add support for mounting custom volumes (cloud credentials) #212
Conversation
f2c7c1c
to
729979e
Compare
There seem to be a lot of file changes with formatting / renaming. Is this from the Pandas PR? |
bba7ef5
to
e7397ba
Compare
should be solved (had to rebase) |
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.
Thanks @GeorgesLorre! Some small comments.
# example for GCP, this mounts your application default credentials to the docker container | ||
"$HOME/.config/gcloud/application_default_credentials.json:/root/.config/gcloud/application_default_credentials.json:ro" | ||
# exaple for AWS, this mounts your current credentials to the docker container | ||
"$HOME/.aws/credentials:/root/.aws/credentials:ro" |
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.
Maybe check with the Azure heroes if there's a similar way to it for Azure?
@@ -106,7 +117,7 @@ def _generate_spec(self, pipeline: Pipeline) -> dict: | |||
command = ["--metadata", json.dumps(asdict(metadata))] | |||
|
|||
# add in and out manifest paths to command | |||
command.extend(["--output_manifest_path", f"{path}/manifest.txt"]) | |||
command.extend(["--output_manifest_path", f"{path}/manifest.json"]) |
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.
This still overwrites the manifest for every component. We should still address this, but can be taken up in a separate PR.
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.
will fix in another PR
|
||
extra_volumes = [ | ||
# example for GCP, this mounts your application default credentials to the docker container | ||
"$HOME/.config/gcloud/application_default_credentials.json:/root/.config/gcloud/application_default_credentials.json:ro" |
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.
Should the user know the correct within the container themselves or should we provide some additional docs on it. When using an SA, is the application_default_credentials.json
still a correct path to mount to?
docs/pipeline.md
Outdated
extra_volumes = [ | ||
# example for GCP, this mounts your application default credentials to the docker container | ||
"$HOME/.config/gcloud/application_default_credentials.json:/root/.config/gcloud/application_default_credentials.json:ro" | ||
# exaple for AWS, this mounts your current credentials to the docker container |
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.
# exaple for AWS, this mounts your current credentials to the docker container | |
# example for AWS, this mounts your current credentials to the docker container |
Args: | ||
pipeline: the pipeline to compile | ||
output_path: the path where to save the docker-compose spec | ||
extra_volumes: a list of extra volumes (using the Short syntax: |
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.
Add some information about the format of the extra_volumes. e.g. list of "source:target" strings with absolute paths where target is the credentials folder/file path specified by the used cloud provider/service
8b7ab75
to
5ab4125
Compare
No description provided.