ZoneMinder / zmdockerfiles

Dockerfiles for the ZoneMinder project build system and for running ZoneMinder
210 stars 106 forks source link

Fix ZM running in a centos 8 container & read secrets from password file #67

Closed 55octet closed 3 years ago

55octet commented 3 years ago

Hello,

This fixes running ZoneMinder on CentOS. Additionally, it adds using password files to pass docker/k8s secrets to the running container.

Additionally, I added a tail -F to capture the container output. This is generally the way to scrape logs from a container.

knight-of-ni commented 3 years ago

I made a few edits to this pr. It seems the apache rpm no longer auto-generates a self signed cert on installation. However, I don't want to generate a ssl certificate in the entrypoint script. We already generate a cert for nginx in the zoneminder rpm, so it won't take much to do the same for apache.

https://github.com/ZoneMinder/zoneminder/blob/master/distros/redhat/zoneminder.spec#L294

knight-of-ni commented 3 years ago

Oh, and great idea tail'ing the logs to keep the container running. I hadn't thought of that.

knight-of-ni commented 3 years ago

commit https://github.com/ZoneMinder/zoneminder/commit/c55b80beabfd5d1e2cfa70539a1b31b1c2eb1214 adds creation of ssl certs to the rpmspecfile. Nightly builds with this change are building on zmrepo now, and new 1.34.23 release packages have been sent to rpmfusion. Rpmfusion builds take ~1 week to make it to stable.

55octet commented 3 years ago

Thanks!