compose and override variables version: "3.8" services: php: environment: DATABASE_URL: "mysql://root:[email protected]:3306/db" in .env i use DATABASE_URL="mysql://test:[email protected]:3306/db" for web request everything is ok, but when i run cron work * * * * * /application/bin/console app:cron:run > /dev/null i see that DB is from .env not from environment Source: Docker..
I am trying to setup Laravel Scheduler on my Docker image. At the end of my .Dockerfile I have added the following; COPY ./mod-docker/crontab /etc/crontabs/root CMD ["crond", "-f", "-d", "8"] And within my crontab file I have this; * * * * * cd /var/www/html && php artisan schedule:run >> /dev/null 2>&1 But now on ..
I am currently executing an exe file using windows task scheduler. I would like to run my exe file in docker container. Though I could think of running my exe file in docker, I am not sure how to schedule the run as it was achieved through windows task scheduler. Please advise on how to ..
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 ..
Having not been able to make any of these SO answers work, asking for help. I have a selenium/standalone-chrome container that works on my local machine. Easy. I have been unable to get a cron job working using a crontab, cron.sh, etc. Here’s my Dockerfile: # Correct image (has python installed!) FROM selenium/standalone-chrome # install ..
I’m having a problem starting my scheduled containers (i’m scheduling these starts using cron. the call i’m doing in cron is 30 8 * * * docker run -d –rm [name of image] I have four images all written the same, for some reason one i guess is working but still not sure. I could ..
I need to automate the verification of active containers with docker ps, and send updates of containers with docker pull. So i created this script file: if docker ps | grep "fairplay";then echo "doker fairplay ok" >> /home/ubuntu/at2.log else echo "doker fairplay caido" >> /home/ubuntu/at2.log errdock=1 fi The script works without a problem when i ..
I am testing a postgres rds backup through a k8 cronjob using a red hat image. The k8 cluster is running in a bastion host (ec2) red hat ami. The rds is publicly accessible and seats in different vpc than the bastion which shouldn’t be a problem. In the security group of the rds when ..
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 ..
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 ..