Skip to content

Commit

Permalink
Rollback to alpine 3.12 to fix date and restart issues (#32,#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
manios committed Oct 20, 2021
1 parent 8526abf commit fac3480
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Expand Up @@ -4,7 +4,7 @@

# https://www.docker.com/blog/docker-arm-virtual-meetup-multi-arch-with-buildx/

FROM alpine:3.14 as builder-base
FROM alpine:3.12 as builder-base

ARG TARGETPLATFORM
ARG BUILDPLATFORM
Expand Down Expand Up @@ -106,6 +106,7 @@ RUN ls -l /tmp && cd /tmp && \
echo -n "Patching cgi scripts in order not to throw segmentation fault. For more info please check: https://gitlab.alpinelinux.org/alpine/aports/-/issues/12516" && \
wget "https://gitlab.alpinelinux.org/alpine/aports/-/raw/f22889166a9e09b63fbfa1ddc34d3057813931f1/main/nagios/cgi-pairlist-truncation-fix.patch" && \
patch cgi/getcgi.c cgi-pairlist-truncation-fix.patch && \
echo "OK" && \
echo -e "\n\n ===========================\n Compile Nagios Core\n ===========================\n" && \
make all && \
echo -e "\n\n ===========================\n Install Nagios Core\n ===========================\n" && \
Expand Down
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -91,6 +91,12 @@ docker exec -it mynagioscontainer bin/nagios -v etc/nagios.cfg

## Troubleshooting

### Nagios keeps restarting or shows a strange behaviour

In docker tag `build-5`, `build-6`, `build-7` we have used Alpine 3.14 as our base image. This comes with security updates which may cause trouble as described in [Release Notes forAlpine 3.14.0 > faccessat2](https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0#faccessat2).

In order to resolve this issue you should use docker tag `build-8` or you can follow the workarounds provided here: [#32 (comment)](https://github.com/manios/docker-nagios/issues/32#issuecomment-940355201).

### My image does not run on Raspberry Pi

As already mentioned in [#17](https://github.com/manios/docker-nagios/issues/17), sometimes, because docker manifest related features are still experimental (after 2+ years of their introduction) it has happened when we tested in Raspberry Pi 1 (`arm-v6`) and Raspberry Pi 3 (`arm-v7`) that it does not download the `arm` image but the `amd64`.
Expand Down

0 comments on commit fac3480

Please sign in to comment.