Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Fabio Montefuscolo
docker-awscron
Commits
c8f4fa97
Commit
c8f4fa97
authored
Apr 12, 2017
by
Fabio Montefuscolo
Browse files
change mounting points
parent
12ede617
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
Dockerfile
Dockerfile
+1
-7
README.md
README.md
+2
-2
entrypoint.sh
entrypoint.sh
+6
-0
No files found.
Dockerfile
View file @
c8f4fa97
...
...
@@ -5,13 +5,7 @@ RUN apk update && \
apk add dcron
&&
\
rm
-rf
/var/cache/apk/
*
VOLUME
[ \
"/etc/periodic/15min", \
"/etc/periodic/hourly", \
"/etc/periodic/daily", \
"/etc/periodic/weekly", \
"/etc/periodic/monthly" \
]
VOLUME
/etc/periodic
COPY
entrypoint.sh /entrypoint.sh
ENTRYPOINT
["/entrypoint.sh"]
...
...
README.md
View file @
c8f4fa97
...
...
@@ -6,8 +6,8 @@ image by adding tools you need, like rsync, ssh, ncat or others.
## Using
You should mount a folder with your scripts in crond container. The
mounting
points are described by their folder name.
You should mount a folder with your scripts in crond container. The
folders
watched by cron daemon are:
*
/etc/periodic/15min
*
/etc/periodic/hourly
...
...
entrypoint.sh
View file @
c8f4fa97
...
...
@@ -2,6 +2,12 @@
DAEMON
=
crond
mkdir
-p
/etc/periodic/15min
mkdir
-p
/etc/periodic/hourly
mkdir
-p
/etc/periodic/daily
mkdir
-p
/etc/periodic/weekly
mkdir
-p
/etc/periodic/monthly
stop
()
{
echo
"Received SIGINT or SIGTERM. Shutting down
$DAEMON
"
pid
=
$(
cat
/var/run/
$DAEMON
/
$DAEMON
.pid
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment