docker-nagios
docker-nagios copied to clipboard
Updating to Alpine v3.16 & PHP8
Updated image to use Alpine v3.16 & PHP8.
Interesting outcome is that the v3.16/php8 image is 12MB smaller than the previous v3.12/php7:
nagios-alpine312 latest 283177380089 4 minutes ago 216MB
nagios-alpine316 latest a48db1ef3aaf 17 minutes ago 204MB
Hi @seancrites ,
Unfortunately upgrading to Alpine 3.16 works only for amd64
architecture. All other architectures have a problem with time as you can see in the picture:
For more information you can read this: https://github.com/manios/docker-nagios/issues/35#issuecomment-945463377
The problem appears since Alpine 3.13. The musl-1.2 upgrade changed the definition of time_t
to 64-bits on all arches. This affects armhf
, armv7
and x86
. See the musl time64 release notes and the wiki for more information.
At the moment NagiosEnterprises/nagioscore has not changed anything and I do not know how to migrate the Nagios code. I did some attempts by replacing
- include <sys/time.h>
+ include <compat/time32.h>
but in vain.
Any help from somebody with specific C++ knowledge on the matter would be appreciated.
Thanks, Christos