-
Notifications
You must be signed in to change notification settings - Fork 48
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
Ideas for new functionality #60
Comments
Hi @benperez. Support for tagging and pushing images would definitely be appreciated. I think we'd need to be careful in parsing and validating inputs (we probably shouldn't just accept I think @denibertovic and I would probably need to discuss these bigger API changes. What's your motivation for switching to For authentication, I wonder if it makes sense to let the user make these header changes in their |
@benperez This is great. We'd definitely appreciate the above changes. A couple of points:
|
Thanks for the feedback. I'll clean up code I have now and open a couple of PR's in the next few days (time permitting) for the following:
I think I can hold off on the |
First of all, just wanted to say thanks for putting this library together. I've been using it for a few weeks and it works great. I'm primarily using it to programmatically
build
,tag
andpush
docker images on an Amazon EC2 instance to a private ECR registry.I've added a few pieces of functionality in my fork that I'd be happy to merge back in but I wanted to run the implementations by you first.
Easy stuff:
Medium Stuff
MonadUnliftIO
. How would you feel about switching the constraints on theApi.hs
functions from(MonadIO m, MonadMask m)
to justMonadUnliftIO m
? I noticed you have a#if MIN_VERSION_http_conduit(2,3,0)
check inHttp.hs
for backwards compatibility with older snapshots.Bigger Stuff
X-REGISTRY-CONFIG
for building images andX-REGISTRY-AUTH
for tagging and pushing images.~/.docker/config.json
which specifies a binary to run to get registry creds. The API that I'm thinking of for accessing these would let the user specify how to do auth inDockerClientOpts
:NoAuthStrategy
obviously uses no authentication.ExplicitStrategy
let's you explicitly pass in aRegistryConfig
mapping.DiscoverStrategy
will look for acredsStore
field in the~/.docker/config.json
file and use the binary it points to to automatically retrieve the auth parameters for each request. TheDiscoverStrategy
is inspired by amazonkaLet me know what you think!
The text was updated successfully, but these errors were encountered: