diff --git a/Containerfile.data_handler b/Containerfile.data_handler index f45b7b2..f9a3f6c 100644 --- a/Containerfile.data_handler +++ b/Containerfile.data_handler @@ -1,4 +1,8 @@ FROM ghcr.io/asohh/fedora-minimal-containers/php-cli:43 -RUN microdnf install -y php-mysqli php-bcmath php-xml gunzip && microdnf clean all +RUN microdnf install -y php-mysqli php-bcmath php-xml gunzip https://raw.githubusercontent.com/rpmsphere/x86_64/master/d/dcron-4.5-7.1.x86_64.rpm && microdnf clean all COPY ./utils/* /opt/ COPY ./data_init/*.sql /opt/init/init.sql + +ENTRYPOINT ["/opt/entrypoint.sh"] + +CMD ["/usr/sbin/dcrond", "-f" ] \ No newline at end of file diff --git a/utils/entrypoint.sh b/utils/entrypoint.sh new file mode 100755 index 0000000..c4dc346 --- /dev/null +++ b/utils/entrypoint.sh @@ -0,0 +1,29 @@ +#!/bin/sh +set -e + + +#################################################################################################### +### Crontab settings +#################################################################################################### + +cat<