Tag : cron

I’ve been trying to run a go script with cron under Ubuntu 16.04 Docker image. Here are the files that I’ve Dockerfile FROM couchbase RUN apt-get update RUN apt-get install gcc make -y RUN apt-get install golang-1.10 git -y ADD src/crontab.txt /crontab.txt ADD src/backup.sh /backup.sh ADD src/backup.go /backup.go ADD src/file.txt /file.txt COPY entry.sh /entry.sh RUN ..

Read more

I want to extends the postgres:10.2 Dockerfile in order to add a cron job doing some SQL queries at specific dates: FROM postgres:10.2 COPY task-purge.sh /usr/local/share/ RUN chown postgres:postgres /usr/local/share/task-purge.sh RUN chmod 700 /usr/local/share/task-purge.sh COPY query-task-purge.sql /usr/local/share/ RUN chown postgres:postgres /usr/local/share/query-task-purge.sql RUN chmod 700 /usr/local/share/query-task-purge.sql The problem is: the cron service is not started: Inside ..

Read more

Environments ▶ uname -a Linux ubuntu 5.4.0-66-generic #74-Ubuntu SMP Wed Jan 27 22:54:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux ▶ docker -v Docker version 20.10.4, build d3cb89e ▶ docker-compose -v docker-compose version 1.28.4, build cabd5cfb ▶ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20.04 Codename: focal Problem ..

Read more