You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use Windows as a host machine for laradock application.
The issue I faced is that cron is sensitive to line endings in crontab files. You can see ^M when run cat -v /etc/cron.d/laradock character in case of DOS-like endings. Cron won't run such files. To solve the issue I have replaced the following lines of workspace\Dockerfile-{version} dockerfile(s):
###################################### Crontab#####################################
USER root
COPY ./crontab /etc/cron.d
RUN chmod -R 644 /etc/cron.d
to
###################################### Crontab#####################################
USER root
COPY ./crontab /etc/cron.d
RUN chmod -R 644 /etc/cron.d
# convert line endings from DOS to UNIX format
RUN apt-get update -yqq && \
apt-get install dos2unix && \
find /etc/cron.d -type f -print0 | xargs -0 dos2unix
The dos2unix utility converts all DOS-like line endings to UNIX format. This can prevent implicit cron errors if you use Windows OS and save you time. May be included into the main package if you will find this useful.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi again 👋 we would like to inform you that this issue has been automatically closed 🔒 because it had not recent activity during the stale period. We really really appreciate your contributions, and looking forward for more in the future 🎈.
I use Windows as a host machine for laradock application.
The issue I faced is that cron is sensitive to line endings in crontab files. You can see
^M
when runcat -v /etc/cron.d/laradock
character in case of DOS-like endings. Cron won't run such files. To solve the issue I have replaced the following lines ofworkspace\Dockerfile-{version}
dockerfile(s):to
The
dos2unix
utility converts all DOS-like line endings to UNIX format. This can prevent implicit cron errors if you use Windows OS and save you time. May be included into the main package if you will find this useful.The text was updated successfully, but these errors were encountered: