-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[Feature]: Publish description and readme to Docker Hub #3842
Comments
@yurishkuro i would like to work on this issue. |
Great, go for it. Don't worry about the descriptions themselves, we first want to set up the process, and then we can improve the readmes. |
I have Tested the Workflow and have tested it on my personal repository to upload Readme files on two different docker-hub repos namely "yashasvichaurasia/testing" and "yashasvichaurasia/testlife"Following are some screenshots: |
@yurishkuro
In one .yml file, I have created multiple jobs which will upload Readme's to different docker-hub repositories when a push is triggered on the Github repo. Kindly evaluate my way of thinking and let me know if I should create a PR if it is correct. |
We don't want to pass Dockerhub credentials to unofficial / 3rd-party GH actions like peter-evans/dockerhub-description@v3. It would be better to have the code directly in Jaeger repo. Also, we run a script to build & publish many different images, I think it would make more sense to upload READMEs as part of that script rather than manually list each image in the GH action. |
Ok, I will get on to work on that. |
@yurishkuro could you help me out on how to proceed , I am feeling a bit stuck with the Dockerhub API. |
I haven't investigated it, but the link I have in the description shows code example of submitting via the api. I assume we can do it similarly with just a curl command that we can include in one of the scripts. |
hey @yurishkuro this issue seems interesting and i want to work on this issue so could you allow me to work on the same:) |
@h20220025 you don't need to ask permission, go for it. |
could you please assign this to me ??? |
Thank You @yurishkuro |
hey @YashasviChaurasia, are you still working on the same ??? |
yes, I am working on this but you can submit a PR if you are able to solve the issue. |
@SaarthakMaini are you still working on this? |
This is still up for grabs, and a very useful feature to solve. |
@yurishkuro I am ready to grab it. |
Feel free. I recommend reviewing comments on the previous PR to avoid repeating the same things. |
## Which problem is this PR solving? Fixes: #3842 ## Description of the changes - Added a shell script that publishes README.md files along with docker images to docker hub ## How was this change tested? - Locally as well as on fork ## Checklist - [x] I have read https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md - [x] I have signed all commits - [ ] I have added unit tests for the new functionality - [x] I have run lint and test steps successfully - for `jaeger`: `make lint test` --------- Signed-off-by: Meet Soni <meetsoni3017@gmail.com> Signed-off-by: Yuri Shkuro <yurishkuro@users.noreply.github.com> Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
@inosmeet the PR didn't work once merged:
when you were testing it did you define special permissions for the token? |
Just Read & Write. |
@inosmeet it's not working for me. I was actually able to get the script to succeed after I did a Can you point to the documentation that describes the corresponding REST APIs? |
## Which problem is this PR solving? - Part of #3842 ## Description of the changes - Remove echoing of commands from upload script - remove test file that doesn't check much Signed-off-by: Yuri Shkuro <github@ysh.us>
@yurishkuro The API endpoint we're using is undocumented. I got the reference from here |
@inosmeet how did you generate the tokens you used? I only have PAT available to the workflow, but the issue you linked mentioned "properly scoped JWT generated from a PAT". Same question for quay. |
@yurishkuro I used DockerHub website to create PAT manually. And it gives a scoped JWT for authentication. Same for quay, we can generate token manually from the website. |
It looks like it started working for Docker (I had to give Delete permission to the token, not just read/write), but it's still not working for Quay, even if I give the user Admin role. Maybe because we're using a robot account for Quay. |
Requirement
As a user downloading Jaeger images from Docker Hub, I want to be able to read a description and basic usage in the Docker Hub repositories.
Problem
Right now most of Jaeger's Docker Hub repositories contain neither description nor the readme.
Proposal
Use Docker Hub API to push the README files from the respective cmd/*** dirs when publishing Docker images.
Example: https://github.com/peter-evans/dockerhub-description/blob/main/src/dockerhub-helper.ts
Open questions
No response
The text was updated successfully, but these errors were encountered: