-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
[WIP] Initial support for containers #1055
Conversation
Build command
Run command
Boot output
Known bug:Rega starts but is not serving pages/var/log/messages
|
For of all: Thanks for this great contribution! Only a first small comment without having looked deeply yet into your changes: Please rebase your PR onto a dedicated branch in your fork and please provide permissions for me (maintainer permissions) so that I can directly send in changes to this PR, because my plan is to get things done here first by submitting own changes to your PR before I will accept this PR. This will make things way easier! EDIT: |
@jens-maus - I sent you an invite to add you to my fork where I am preparing the OCI feature. Once you accept it I can make you admin there. An alternative is that you create the the branch in your repo and give me access to it. I have no preferences :-) I have no issues with the docker images being in your account but I need one to test the CI steps and moving the image to other computers to test. Ideally you would create one repo and make me (at least temporally) push rights. As alternative I would rename it to a less obvious name. The reason IMO against Docker Hub is - https://www.docker.com/blog/docker-hub-image-retention-policy-delayed-and-subscription-updates/ . This pull consumption tier has already hit me over the last months and force me to log in with my account which is not so easy/secure when I am deploying a new Kubernetes cluster or testing a container in a server I do want to trust. Also people in my house that did not have an account where forced to create one. They can be mitigated but they add friction. Also Docker require projects to be excluded from this to be not only Open Source but not commercial. Quay.io is one of the alternatives people are moving to. I personally like their security scanner and support to keep open source projects in the free tier without additional conditions/processes. EDIT: I have created a branch |
Yes, please recreate the PR then. I will then close that one here afterwards And I don't need general access to your fork. Just make sure that in the new PR you have enabled maintainer access to the branch you created the PR from. Then I can directly commit to your branch without having to have general access to your while fork. And regarding a container registry. You are right dockerhuv does not seem to be the right Place anymore. Too bad they changed their policy that much. However I would prefer to use the new GitHub docker registry GitHub provides since a while because it seem to integrate nicely with GitHub actions and the rest of the GitHub infrastructure. So as long as you develop this feature feel free to use your private quay.io registry. But for the final RaspberryMatic docker implementation I would like to use the GitHub registry, if possible. |
Description
Adds support to build Open Container Initiative ( as Docker) containers.
Related Issue
#786
Types of changes
Alternate Designs
Both are circumvention since they would patch RaspberryMatic after it has been built which makes very difficult not running in broken builds.
Possible Drawbacks
Kernel headers must be kept as old as possible to support running on host with older kernels. For example the Sinology NAS is still using kernel 4.4 which is the oldest currently supported by buildroot.
The old headers are needed in the OCI images AND the multilib. Currently I did not create new definitions for multilib since I do not see what problem would be using the older headers there but it could be done if anyone sees an issue.
Verification Process
Started the container on my amd64 workstation which uses kernel 4.19. All init error problems are gone and the UI comes up sucesfully. I still need to test with actual RF devices and build&test on arm.
Beyond that a CI will need to be contributed that uploads to a container repository. I propose to use https://quay.io/repository/angelnu/raspberrymatic (since docker hub new policy is not great)
Release Notes
Contributing checklist