From 28cadc2cf4e86990df77bf630ec5264617b711b7 Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Mon, 10 Oct 2022 21:27:12 +0200 Subject: [PATCH] fix(crond): Problems with Docker, Alpine and Crond (it doesn't start) --- Dockerfile | 2 +- crontabs | 2 +- docker-compose.yml | 2 +- startup.sh => startup | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename startup.sh => startup (100%) diff --git a/Dockerfile b/Dockerfile index f0f1abf..e57022d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,4 +24,4 @@ WORKDIR /opt/rawdog VOLUME /opt/rawdog/public -ENTRYPOINT ["/opt/rawdog/startup.sh"] +ENTRYPOINT ["/opt/rawdog/startup"] diff --git a/crontabs b/crontabs index bcb9ec8..26488c2 100644 --- a/crontabs +++ b/crontabs @@ -1 +1 @@ -0 4 * * * /opt/rawdog/startup.sh > /dev/stdout +0 4 * * * /opt/rawdog/startup diff --git a/docker-compose.yml b/docker-compose.yml index 8e11c6e..cc88f6d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: image: rawdog:0.1 restart: always entrypoint: /usr/sbin/crond - command: ["-f", "-l", "2"] + command: ["-f", "-l", "2", "-L", "/dev/stdout"] volumes: - ${PWD}/public:/opt/rawdog/public:rw environment: diff --git a/startup.sh b/startup similarity index 100% rename from startup.sh rename to startup