From 29190b67b29263a6e8e0f0d1492c6ab9eb71772d Mon Sep 17 00:00:00 2001 From: Diego Campo Date: Thu, 4 Jan 2024 19:44:45 +0100 Subject: [PATCH] add cron --- docker/Dockerfile | 2 +- docker/run.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index fb8758b..7dfcdf3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -6,7 +6,7 @@ WORKDIR /app ## curl, unzip other utilities RUN apt-get update && \ - apt-get install --no-install-recommends --assume-yes curl unzip pv ca-certificates gnupg2 python3 python3-pip + apt-get install --no-install-recommends --assume-yes curl unzip pv ca-certificates gnupg2 python3 python3-pip cron # gomplete for updating config with env vars RUN curl -o ./gomplate -sSL https://github.com/hairyhenderson/gomplate/releases/download/v3.10.0/gomplate_linux-amd64 diff --git a/docker/run.sh b/docker/run.sh index e4497c1..bdf3bb1 100644 --- a/docker/run.sh +++ b/docker/run.sh @@ -66,6 +66,9 @@ fi # load env var array as a data source # /app/gomplate -d 'boot_nodes=env:///BOOT_NODES?type=text/csv' -f /app/docker-config.yaml -o /app/docker-config-env.yaml +# start cron +cron + # run the node cd /app