Looking for sysbox-deploy-k8s Dockerfile
Hi there! My team is considering using sysbox for our privileged/DinD runners on our gitlab instance. We have quite a disconnected environment, and I've had a lot of issues trying to mirror in registry.nestybox.com/nestybox/sysbox-deploy-k8s:v0.6.7-0. The issue seems to be that it's based on centOS 7, and we no longer allow images that old.//
I am happy to have a go at updating the base image in the Dockerfile myself, but I couldn't find it. I poked around https://github.com/nestybox/dockerfiles for a while but I couldn't see it there.
TL;DR Could anyone point me to the Dockerfile that's used to build registry.nestybox.com/nestybox/sysbox-deploy-k8s:v0.6.7-0?
Based on https://github.com/nestybox/sysbox/blob/master/CONTRIBUTING.md I guess this could be a documentation or bug issue (I don't seem to have perms to add the label myself).
Hi @abrad3, thanks for giving Sysbox a shot, hope you find it useful.
TL;DR Could anyone point me to the Dockerfile that's used to build registry.nestybox.com/nestybox/sysbox-deploy-k8s:v0.6.7-0?
It's here: https://github.com/nestybox/sysbox-pkgr/blob/master/k8s/Dockerfile.sysbox-ce#L1
That in turn uses a base image ghcr.io/nestybox/centos7/systemd which comes from this other Dockerfile:
https://github.com/nestybox/sysbox-pkgr/blob/master/k8s/Dockerfile.centos7-systemd#L1
I don't recall the exact reason we used the centos:7 base image, but I believe it had to do with the fact that it came with a systemd installation that was easy to work with. However I suspect you can make it work with another base image too.
The main script for sysbox-deploy-k8s (which runs inside the sysbox-deploy-k8s daemonset container) is here: https://github.com/nestybox/sysbox-pkgr/blob/master/k8s/scripts/sysbox-deploy-k8s.sh#L20
Hope that helps!