From 2c9d0e7941aec9372d6a5b2c7a8c05d4a076ee90 Mon Sep 17 00:00:00 2001 From: ajlucena78 Date: Tue, 11 Sep 2018 13:58:47 +0200 Subject: [PATCH] Updated crontab scheduler inclusion --- .gitignore | 3 +++ apache-php-xdebug/php7/Dockerfile | 11 +---------- nginx-php/php7/Dockerfile | 3 ++- 3 files changed, 6 insertions(+), 11 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c485eb4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/.project +/.settings/ +/.buildpath diff --git a/apache-php-xdebug/php7/Dockerfile b/apache-php-xdebug/php7/Dockerfile index f2a622b..b2e9378 100644 --- a/apache-php-xdebug/php7/Dockerfile +++ b/apache-php-xdebug/php7/Dockerfile @@ -1,18 +1,9 @@ FROM webdevops/php-apache-dev:alpine-php7 -# RUN service apache2 stop -# RUN apt-get update -# RUN apt-get -y install software-properties-common -# RUN apt-get install php7-xdebug -# RUN echo "xdebug.remote_enable=on" >> /etc/php7/mods-available/xdebug.ini \ -# && echo "xdebug.remote_autostart=on" >> /etc/php7/mods-available/xdebug.ini \ -# && echo "xdebug.remote_connect_back=on" >> /etc/php7/mods-available/xdebug.ini -# RUN service apache2 restart - RUN echo "Europe/Madrid" > /etc/timezone RUN touch /var/log/cron.log && \ - echo "* * * * * php /var/www/html/bootstrap.php modules/ximSYNC/scripts/scheduler/scheduler.php" >> mycron && \ + echo "* * * * * php /var/www/html/bootstrap.php src/Sync/scripts/scheduler/scheduler.php" >> mycron && \ crontab mycron && rm mycron RUN crond \ No newline at end of file diff --git a/nginx-php/php7/Dockerfile b/nginx-php/php7/Dockerfile index 571ec1b..3832bac 100644 --- a/nginx-php/php7/Dockerfile +++ b/nginx-php/php7/Dockerfile @@ -5,5 +5,6 @@ ADD ./nginx.conf /etc/nginx/ RUN echo "Europe/Madrid" > /etc/timezone RUN touch /var/log/cron.log && \ - echo "* * * * * php /var/www/html/bootstrap.php modules/ximSYNC/scripts/scheduler/scheduler.php" >> mycron && crontab mycron && rm mycron + echo "* * * * * php /var/www/html/bootstrap.php src/Sync/scripts/scheduler/scheduler.php" >> mycron && crontab mycron && rm mycron + RUN crond \ No newline at end of file