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

/bin/sh provider #45

Open
stepancheg opened this issue Feb 6, 2025 · 2 comments
Open

/bin/sh provider #45

stepancheg opened this issue Feb 6, 2025 · 2 comments

Comments

@stepancheg
Copy link
Contributor

Something like this:

"providers": [{
  "type": "shell",
  "sh": "gsutil cp gs://foo/bar/baz.tgz @DOTSLASH_OUT@"
}]

This can be used as S3 provider #30 or GCP provider #32.

@zertosh
Copy link
Contributor

zertosh commented Feb 6, 2025

This feels dangerous (albeit useful). Not a huge fan of @DOTSLASH_OUT@. I like that tar's --use-compress-program assumes that stdout is the output. Is that too limiting for the use cases you see?

@stepancheg
Copy link
Contributor Author

One can always either:

  • pass /dev/stdout as argument
  • do something like gsutil cp gs://foo/bar/baz.tgz $TMPDIR/xx && cat $TMPDIR/xx if a program cannot write to /dev.

I suspect the latter option will be used practically, so I proposed @DOTSLASH_OUT@. Should be easier to debug too (when command fails, dotslash would print the exact command that failed, that can be just pasted into a terminal).

But piping to stdout as the only option will not be a blocker.

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