Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cron_fix_and_mongodb_version_set #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[cron_fix_and_mongodb_version_set] Fixed cron and set mongodb version…
… in maintenance
  • Loading branch information
TBoonX committed Nov 28, 2017
commit 2f04ac50744758422b9a0e148b45534be431a75e
6 changes: 3 additions & 3 deletions maintenance/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mongo:latest
FROM mongo:3.4
MAINTAINER The SlideWiki Project <dev@slidewiki.org>

# ---------------- #
@@ -37,5 +37,5 @@ RUN apt-get autoremove -y && apt-get -y clean && \
rm -rf /var/lib/apt/lists/*

Entrypoint []
#CMD supervisord
CMD http-server -p 80 -i
CMD supervisord
#CMD http-server -p 80 -i
3 changes: 2 additions & 1 deletion maintenance/crontab
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@daily root /backup.sh &>> /var/log/cron.log
0 0 * * * root /backup.sh >> /var/log/cron.log 2>&1
#* * * * * root echo "Hello world" >> /var/log/cron.log 2>&1
# An empty line is required at the end of this file for a valid cron file.