Skip to content

Commit

Permalink
Updated crontab scheduler inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlucena78 committed Sep 11, 2018
1 parent 57195ea commit 2c9d0e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.project
/.settings/
/.buildpath
11 changes: 1 addition & 10 deletions apache-php-xdebug/php7/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion nginx-php/php7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2c9d0e7

Please sign in to comment.