-
Notifications
You must be signed in to change notification settings - Fork 1
S3 asset upload for deploy command #39
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
Conversation
5a7f594 to
87915dc
Compare
KekoaM
left a comment
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.
Overall looks good, may want to provide slightly more info if docker socket connection fails.
| .await | ||
| // truncate error chain with new error (returned error is way too verbose) | ||
| .map_err(|_| { | ||
| anyhow!("could not talk to Docker daemon (is DOCKER_HOST correct?)") |
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.
Do we want to print any debug info here?
not critical, but something to think about
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.
The error returned by bollard is not particularly helpful so I don't think there's not much other debug info we could print:
[ERROR] could not access container registry
Caused by:
0: Error in the hyper legacy client: client error (Connect)
1: client error (Connect)
2: No such file or directory (os error 2)
Signed-off-by: Robert Detjens <github@detjens.dev>
This makes things cleaner than a big `async move` block Signed-off-by: Robert Detjens <github@detjens.dev>
Signed-off-by: Robert Detjens <github@detjens.dev>
Signed-off-by: Robert Detjens <github@detjens.dev>
87915dc to
3eceb00
Compare
Implements the asset file upload portion of the
deploycommand.Asset files are uploaded to
<the bucket>/assets/${CHAL/SLUG}/${FILENAME}(e.g./assets/misc/foo/things.zip)Depends on #38 and includes its commits.