-
Notifications
You must be signed in to change notification settings - Fork 158
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
Document dockerPush task #74
Comments
All you need to do is set the remote repository in the image name. E.g., On Wed, Oct 26, 2016 at 1:56 AM jonesr91 notifications@github.com wrote:
|
How/where would I specify my login credentials? |
typically you On Wed, Oct 26, 2016 at 9:15 AM jonesr91 notifications@github.com wrote:
|
For my use case, I'd prefer to use the palantir plugin to do the login for me so that I'm not dependant on the login command having already been executed on against that docker installation.
|
I'm using the plugin in my jenkinsfile, like others it would be great to have a mechanism for using the plugin to do the docker login to a private repo. Thanks for the great plugin, very useful. |
the typical flow for this is to let the CI system (circle/jenkins/etc) inject credentials as environment variables. then it should be easy enough to run |
The CI I'm working with isn't set up to do docker login on its own quite yet, currently working around this with e.g.
Note that this elicits |
@uschi2000 Providing a feature that many users need is exactly opposite of complicated. |
The Bmuschko Docker plugin can set the auth info in a Gradle file, why the Palantir Docker plugin can't do that? Please make us easier use this plugin please. |
@amendoza-navent I'm curious, if the Bmuschko Docker plugin can do what you want, why are you even looking at this plugin? I personally looked at both plugins and chose Bmuschko Docker plugin, even though it's no longer actively maintained. |
@asarkar I started using the Palantir plugin because there is many tutorials and video tutorials using this plugin in internet and now I was avoiding to change it. |
As a workaround (or actually: solution) you can use something like this:
|
WHAT, you can't use this grade plugin to reliably push a docker image to a remove repository, unless you are not using authentication?? What company or organization would allow you to do that exactly? In my case:
So all the suggestions above will not work in our case unless you are advising to go against best practices. |
I use Harbor as a cloud registry, for both docker images and helm charts. For the helm plugin i can login, why not with this plugin? XD Personally, i like this plugin compared to bmushko because i can use a dockerfile instead of gradle dsl to build but, the login, is important. |
I'd like to be able to use the dockerPush task to push an image that was built using the palantir docker task to a private repository (Sonatype Nexus 3).
From the docs, I can't work out how to use the dockerPush task for pushing to a private repository. Can you document how this task works, along with an example.
Thanks in advance.
The text was updated successfully, but these errors were encountered: