In order to simplify the life of our servant @pierre-gilles and so that he can spend even more time on the code , the builds of the raspbian image can be automated.
I have therefore set up and configured pi-gen to build a Gladys image. (pi-gen is the official tool of the Raspberry Foundation).
2020-05-27 - New image => udev rules and 10MB max log for docker 2020-04-28 - New image with Docker images (docker save) 2020-04-21 - Code on Github 2020-04-16 - First release
Do you know if it would be possible to perform the processing you do at first boot earlier? I’m afraid this is a step that often fails for users (bad connection for example, the user has no idea when it will end…)
In my opinion, the option or the image is only downloaded at boot, which is a very frustrating experience for users: impossible to know where it is at, if your connection is not great it will take 2 hours but you don’t know what’s happening.
After that, if we build the Raspbian image with each Docker image build, in the end it amounts to the same thing the image will always be up to date
Yes, I see, it’s not a problem (I just got pissed off making a service / no big deal I learned some stuff ^^).
I will therefore modify the build, the containers will already be created. I will also modify the service to « monitor » these containers and log in dmesg.
I take back what I said, cross build doesn’t allow me to pull an image during the build because docker doesn’t know which architecture it’s running on.
level=error msg="failure getting variant" error="getCPUInfo for pattern: Cpu architecture: not found"
Oh damn, is there no way to work around it? Can’t you specify the architecture in the docker pull command?
I still prefer it over the download which depends on your connection. For a guy on ADSL, the download will be more like 1 hour, whereas untar will take a constant time
The issue isn’t even with the Docker image. I can’t run the Docker daemon from the Raspbian image during the build (chroot / QEMU), there’s a QEMU bug, it doesn’t provide information about the architecture, the Docker daemon crashes without this information.
To work around this, I save the image using the host’s Docker that builds the Raspbian image.