-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Publishing of docker images #3999
Comments
Agreed, I have been having trouble with this. Should there also be per-version tags? |
There is stable image built from |
@Kubuxu Yes, it seems that |
Yeeah we forgot pushing to the release branch for 0.4.9, doing now |
Great, thank you! |
@victorbjelkholm we've had the following structure since the beginning:
Any strong reason to change that? |
Not to speak for him, but I think Victor's point was more "let's make sure that the tags are always updated" rather than to mandate a tag scheme, really, and I would +1 that. For me, any scheme is fine, as long as it's consistently kept up to date. |
It's already in the release checklist, it was apparantly just forgotten for 0.4.9 :) |
Ah, great. For me, the biggest UX failure was that search engines return a different Docker repo first, so that led to much confusion for me. If that one can either be removed or at least changed to a note that says "please use this new one", it would save people lots of pain. |
Oh mh, the jbenet/go-ipfs image... I've never quite figured out how to properly mirror the ipfs/go-ipfs builds to jbenet/go-ipfs... |
I don't think you need to mirror (and probably shouldn't), just change the Readme there to the text "please use this other repo" and a link. That would mostly solve the issue, I think. |
The idea was to leave existing scripts and deployments working. With just a changed readme, nobody actually notices. We need to either continue maintaining it (preferred), or delete it. |
That makes sense, but I don't know about nobody noticing. I typed "ipfs docker" and went to that repo, if the README was different, I would have just gone to the right one immediately afterwards. Besides, it can't hurt to try. |
Well, depending on if "current release" refers to current stable release or current as in latest release done, RC versions included. If not, I think we should add a tag for latest unstable release. If yes, we should add a tag for stable releases. Initially, my strongest feeling was that |
It was pointed out on IRC that |
Seems we should update https://github.com/ipfs/go-ipfs/blob/master/docs/releases.md to include pushing the docker tags as well, as I don't think they get automatically created? |
We had automated docker builds working for a good while, but since the data leak from docker hub back in April, the github api token has been invalidated, so all builds are failing https://cloud.docker.com/u/ipfs/repository/docker/ipfs/go-ipfs/builds/edit @ipfs/infra pls can you re-connect github to docker-hub for go-ipfs autobuild magic? |
@olizilla I have fixed the "magic". Dockerhub is a broken slow mess though, so it may take some retries until builds run and succeed. |
@hsanjuan do you know why https://hub.docker.com/r/ipfs/go-ipfs/tags/ is missing |
The dockerhub is wonky. We have an autobuild set up to build the image and relase when a new version tag is added, but it hasn't triggerd for v0.4.21, and there doesn't appear to be a way to trigger it manually... we may need to manually push the image for v0.4.21 |
@olizilla good news is that |
I have taken |
It seems that latest and release didn't get updated to 0.4.23. |
Gah, thanks for the reminder. I've pushed to the release branch and the build should trigger shortly. |
About that thing with |
Thanks for raising this! There needs to be more guard conditions in to prevent release candidates from being tagged as latest. I think we need a PR that:
I was hoping to drop the |
- add guard for rc releases; publish them to docker hub with the matching git tag - make the semver regex stricter and only publish as latest when a full semver tag with no pre-release suffix is the name of the git tag. - add `release` tag as an alias of `latest` as per #3999 (comment) Tested manually as the push-docker-tag.sh script is set up for it: ```shell ./push-docker-tags.sh $(date -u +%F) testingsha release v0.9.0-test dry Nothing to do. No docker tag defined for branch: release, tag: v0.9.0-test ./push-docker-tags.sh $(date -u +%F) testingsha release v0.9.0-rc1 dry DRY RUN! I would have tagged and pushed the following... docker tag ipfs/go-ipfs:wip ipfs/go-ipfs:v0.9.0-rc1 docker push ipfs/go-ipfs:v0.9.0-rc1 ./push-docker-tags.sh $(date -u +%F) testingsha release v0.9.0 dry DRY RUN! I would have tagged and pushed the following... docker tag ipfs/go-ipfs:wip ipfs/go-ipfs:v0.9.0 docker push ipfs/go-ipfs:v0.9.0 DRY RUN! I would have tagged and pushed the following... docker tag ipfs/go-ipfs:wip ipfs/go-ipfs:latest docker push ipfs/go-ipfs:latest DRY RUN! I would have tagged and pushed the following... docker tag ipfs/go-ipfs:wip ipfs/go-ipfs:release docker push ipfs/go-ipfs:release ``` fixes #3999 License: MIT Signed-off-by: Oli Evans <[email protected]>
Currently on Docker Hub, we publish latest builds as
:master
instead of Docker common practice which is:latest
. Would be good to at least updatelatest
as well on new version.Another good tag to have is
stable
as right now,master
is pointing to a RC version whilelatest
points to an old version.Structure would be something like this:
master
/latest
-> latest shine bleeding-edge build, RCs and so onstable
-> latest stable version, right now that would be 0.4.9The text was updated successfully, but these errors were encountered: