mirror of
https://github.com/moghtech/komodo.git
synced 2026-03-09 07:13:36 -05:00
[Feature] Self hosted builders with ephemeral build environments #35
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @C0untZero on GitHub (Aug 30, 2024).
At the moment, if we designate a local server as a builder, the repo build expects the build tools to already be available.
It would be nice if there was a way to:
Point 2 is there because builders can also double as deployment servers and I imagine we'd want to keep the deploy environments clean of any needed build dependencies.
This could potentially be solved by utilizing docker itself - a repo configuration could define an image where the repo would be cloned and built.
and RUN <onclone cmd / onpull cmd>.
As per our Discord discussion, this could be done by Komodo building a temporary Dockerfile in the repo and filling it with the configured FROM
Alternatively it may be possible to use docker attach, where Komodo would spin up a container from the defined image, perform docker attach on it, and then execute all further commands directly there.
@FoxxMD commented on GitHub (Oct 31, 2024):
This could also be achieved, somewhat, by using act to run github action workflows. It follows the behavior you described (isolated build environment in container). Advantage being github workflows already exist and are well supported with the obv disadvantage being the workflows are not agnostic.