-
Notifications
You must be signed in to change notification settings - Fork 163
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
Automate Docker builds (Especially from Master, but might as well do for all the releases) #1175
Comments
Ok, thinking out loud here.... We can use the date as a tag, but there is no reason to pollute dockerhub with tons of images. So yes, I do think the 'daily' version could be good here. I think we should tag it 'nightly'. Not sure why, but I think that is a more commonly used/understood name? See https://www.mozilla.org/en-US/firefox/131.0a1/releasenotes/ So lets create a github workflow that does that every day. I think @wangxiaoerYah maybe can do this since he knows about github workflows. You can follow this for the tagging process: https://github.com/cypht-org/cypht/wiki/How-to-release-Cypht#manually-releasing-a-docker-image To clarify every day an image will be built and pushed with the name 'cypht/cypht:nightly'. Thus overriding the previous day's build. Separate items not discussed in this ticket:
|
I am OK with 'nightly' but 'daily' seems a bit better: |
https://github.com/cypht-org/cypht/releases/tag/v2.3.0 was released and now also on DockerHub: https://hub.docker.com/r/cypht/cypht/tags |
Great. Thanks @Shadow243 |
Hello, |
Do you mean builds for arm architectures ? Yes, we will add them too. |
Yes For the arm architecture. I should be Fine. Thanks |
Ok, it will be added ASAP. |
Please add manual instructions ASAP to ease testing. |
Hello, I added a build for arm64.
linux/arm64 added: https://hub.docker.com/r/cypht/cypht/tags |
arm64 added https://hub.docker.com/r/cypht/cypht/tags, you can test it. |
Re-opening as we don't yet have Docker builds from master. It would really smooth out our dev-test feedback loop, like here: #1153 (comment) Also, for releases, the Docker part is manual. This is low priority as it's a manual operation that only needs to be done for stable releases (every few months). @jonocodes: I remember you had a mental roadmap. Can you share some more wisdom? Thanks! |
ok, I found "After that we decide how to work this into a github action/automation for the next release perhaps. And how to maintain 'latest' and other non-versioned tags." here: #1001 (comment) |
I agree with the principle. Reminder of our lifecycle: https://github.com/cypht-org/cypht/wiki/Lifecycle Importantly, 2.x is supported for one year once 3.0 is released. Thinking of use cases, how about something like this?
So users must proactively determine a specific version, or latest stable release per branch, or daily build for master and major versions. |
So if tests fail, cypht/cypht:master-daily can be stuck to a few days ago. That is OK, as we'll fix it fast enough and it's less risky for users. We already have automated tests for each merge requests before they are accepted in master. What would be different between daily build tests? Some longer tests? |
@wangxiaoerYah: @SKB-TECH will now start working on this, so now is a good time for any suggestions. Thanks! |
Yes I think this sounds good. And I agree that having daily fall behind it tests break is the way to go. I would go with this naming scheme as it seems more consistent with how others do it. However this is no real standard, so feel free not to.
My one concern is '2-daily'. The issue is that eventually it will no longer be updated, but will still be called 'daily'. But this is a minor concern and can probably be cleared up with documentation. |
@JohnXLivingston @mose @benoitg Any wisdom? |
For what i understand, the main point of the daily build is to have some people test the most active branch. So, i think that only one daily build is enough, and I think it does not need to specify the major version in its name. |
Something else that could be usefull: having special tags pointing to the latest stable version. When you have a docker environment (for example using docker-compose), you must specify the tag you want. A common workaround is to have some special tags:
Those are just tags. Multiple tags can share the same build (no need to build X times, just build the new image, and change existing tags to point at it). (i don't say that we must have all those tags, we just have to choose the preferred strategy) |
My only concern it that we should make sure not to create a naming convention ambiguity with the snapshots we want to create for tiki, which are human triggered quasi releases meant for dogfooding in production, vs automated daily builds. We didn't iron out a naming convention either, but tiki snapshots should have the branch and date as part of their name. Yes it's not the same project, but since it's mostly the same people, there is a very real risk of confusion. But i'm not well versed enough on the assumptions of the various tooling to form an opinion on the exact naming convention we should use. |
I do not like the use of 'latest' as it is ambiguous since it means different things to different docker systems/users. So I specifically avoid that term. In its place I think 'stable' may be appropriate. That being said, I dont encourage such use as a production user should at least know which major version they want to run. If 'stable' is pointing to 2, and there is a breaking change when it switches to 3, this will be problematic when the version gets changed out from under the user.
Agreed. That is the intent of the above daily/nightly above. I generally think this is a case that should not come up since the included build tools make it unnecessary, but thats just me.
Yes. Those are the intent of the above mentioned 'cypht/cypht:2' which is would point to 'cypht/cypht:2.4.0' |
This is needed to unblock this task: #1386 (comment) |
@marclaporte , @jonocodes , @rodriguezny , @benoitg , @JohnXLivingston , @neotwix
If we've forgotten, please call us back. |
A sizable part of Cypht users install it via Docker. Thanks to @jonocodes via cypht-org/cypht-docker#31, we now have: https://hub.docker.com/r/cypht/cypht
As of now, Docker releases (of Cypht stable releases) are manual. This is not a problem as we release stable versions every 2-3 months or so. However, for the development / testing / community process, it's causing quite a bit of friction. We need a way for community testers to get the latest Cypht from master. It could be a daily build, or even for each commit.
A nice side-effect is that will likely help us catch build bugs sooner.
Thoughts?
Thanks!
The text was updated successfully, but these errors were encountered: