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
hub.docker.com repositories all need documentation #5847
Comments
Response from them, (thanks!)
|
If you'd like to work on this, I'll help, and would love to have you work on it. You need to be a community member with some history to be trusted with the hub.docker.com privileges of course. |
I imagine this needs a template to get started. Template fileQuick referenceMaintained by: Where to get help: Quick reference (cont.)Where to file issues: Documentation: What is DDEV?DDEV is an open source tool for launching local web development environments in minutes. It supports PHP, Node.js, and Python (experimental). These environments can be extended, version controlled, and shared, so you can take advantage of a Docker workflow without Docker experience or bespoke configuration. Projects can be changed, powered down, or removed as easily as they’re started. LicenseView license information for the software contained in this image. As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained). Some additional license information which was able to be auto-detected might be found in repository's ddev/ directory. As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within. |
Awesome! |
🤚 I'll give one a go if you'll have me. Based on that workload I'll be able to let you know what more I can actually commit to (I'm in the midst of doing a bunch of other technical writing). |
Would love to have you do this @jpoesen ! I can give you privs over there. Please hit me up in Discord and I'll set you up, we can talk through and do a screenshare of what's going on. |
The list of repos to edit is in https://hub.docker.com/?namespace=ddev Edits/comments on #5847 (comment) are welcome. We'll start with seeing how it goes with ddev-webserver In each of these we want to give a little context about the reason the repo exists. |
The primary goal here should be to make these listings useful to people who land on them. Secondary goal is to satisfy the kind folks at Docker who do the DSOS. However, any actual documentation improvements belong in the relevant GitHub repository, normally ddev/ddev. It can be properly maintained there, and won't be properly maintained if kept separate. @jpoesen please take a look and see if Dockerhub provides a way to bring the description in from github. Thanks! |
We've expanded the scope here to move the docs into DDEV github repos, which is how it should be. @jpoesen is studying this, and found these references already: |
Dockerhub autobuilding was another possible solution to updating the description, but AFAICT it doesn't allow the flexibility that we currently have in pushing images. For example, our many db images are all pushed at once to different repositories and with slightly different builds, even though they share a common Dockerfile. https://docs.docker.com/docker-hub/builds/how-builds-work/ |
|
Ooo I thought I clicked that at one point but maybe I just went to https://hub.docker.com/u/ddev |
I am logged in so I guess you need to be member of org? https://hub.docker.com/u/ddev says "Displaying 1 to 25 of 28 repositories" not sure if that is "all" of them. |
Thanks, yes, that's a fine link, and you can get to the next page at the bottom, and that is all of them. |
I expanded @bmartinez287's template as a gist here: https://gist.github.com/jpoesen/caf76ff57ef3b2dd903d1e821f86b35c. Feel free to suggest further tweaks. I've got a basic action working that gets triggered on updates to readme.md on main.
Next step: discuss the logic. Some dockerfiles are contained within ddev/ddev, while others are in their own ddev/xyz repo, correct? For those that have their own repo, my current action will work (triggers sync on readme.md update). For those within ddev/ddev I'm not exactly sure. We could explicitly add each readme file to watch (such as https://github.com/ddev/ddev/blob/master/containers/ddev-webserver/README.md). There's only a handful of them or so, but the action would need to be updated when containers are added or removed from the repo. |
The only ones that matter much are in ddev/ddev "containers" directory. https://github.com/ddev/ddev/tree/master/containers There is one in ddev/ddev ".gitpod/images", so I guess we should include that. https://github.com/ddev/ddev/tree/master/.gitpod/images |
The template looks great, except support should be improved as mentioned on the gist,
|
This looks just fantastic to me. Does anything have to be done on the dockerhub side before it gets deployed? |
Maybe we can have a minor chat here or in Discord about how to go forward, what's required in terms of long-term maintenance, what's required to get this initially deployed. |
I know you will, but please take a look @stasadev @bmartinez287 |
Setup
Note: Maintenance:
Not sure what other maintenance tasks there are. |
Here's how to Dockerhub stuff is done. You can't do passwords with dockerhub, have to do token: ddev/.github/workflows/push-tagged-image.yml Lines 50 to 54 in 4f65cfc
A good next step would be for you to use https://github.com/ddev/ddev/actions/workflows/push-tagged-image.yml in your own fork. Developer docs show how to do this. You can add your code in there to do the updates, and of course push to your own Docker repo. I'm pretty sure that we should do the update on push, rather than on change to README. The template can go into the containers directory, true? |
No pressure, but a little pressure. I don't want to wake up one day with an email from them :) thank you! |
Would you like somebody else to push forward with this @jpoesen ? Thanks so much for pioneering this. |
Sorry, the last 2 weeks were busier than planned.
Yes, I'll create a PR for that.
I'm not sure why. It doesn't seem like the action of pushing a tagged image changes the container's README file, so we'd be overwriting the dockerhub READMEs with the same content each time. Unless I'm mistaken, the container READMEs are only updated manually, so it's more logical we update the linked dockerhub repo at that time, no? Quick recap, just to be sure:
Correct? |
It works for me either way! As long as it's understood that we're changing the README only, and that's separate from the image push. It's not too hard to trigger on I think we should be fine, and I know you're busy, so feel free to push back if it's too much and you can just manage things. Thanks so much for pioneering this! |
Not having been involved in the development and release process at all: Do new releases {always | often | sometimes | never } involve a related change in a container's repo? Like a build summary or a custom build-specific message, or something else? At the moment the GH action I'm using is triggered on any change to a container's README file, so no diffing needed, unless I'm misunderstanding something. |
It will be very unusual to change the README in the containers directory. We just need to get a good starting one in there. Our images are unlikely to be used separately, and it's not encouraged. So mostly we just want to do what they ask us, do a decent job of it, and things should be OK. |
I'll start working on this using your excellent pioneering work if I don't hear from you soon. Thanks for all the effort! |
|
…#6032) Co-authored-by: Stanislav Zhuk <stasadev@gmail.com>
The Problem
Our Docker-Sponsored-Open-Source application is at risk because we don't have appropriate docs on all the DDEV repositories.
Email from them:
Their web page has added this new requirement:
Solution:
What we need to do:
The text was updated successfully, but these errors were encountered: