Skip to content

Commit

Permalink
move to a better versionned system
Browse files Browse the repository at this point in the history
  • Loading branch information
abuisine committed Apr 5, 2016
1 parent 3a2b2e5 commit 16cb205
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM debian:jessie
MAINTAINER Alexandre Buisine <[email protected]>
LABEL version "3.2.0"
LABEL version "2.0.0"

# Update the package repository and install applications
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update \
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ This container is based on the latest stable version (3.2.0).

It is intended as an alternative to cron and anacron.

Put your fcrontabs (see http://fcron.free.fr/doc/en/fcrontab.5.html) in /fcrontabs (filenames should end with .fcrontab).
## Usage

Note that environment variables can be set in fcrontabs like this (they will be replaced on the first container start) : `VARIABLE=${VARIABLE}`
Should you want to pass container environment variables to the fcron daemon, please set `FCRON_ENV_VARS` with environment variable names, separated by a "space".

Each fcron command is set through an environment variable, which is then enabled through `FCRON_COMMANDS` (which works similarly than `FCRON_ENV_VARS`).

You can communicate with the daemon using fcrondyn (see http://fcron.free.fr/doc/en/fcrondyn.1.html).

Expand Down
2 changes: 1 addition & 1 deletion resources/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
DELAY=2

echo "-----------------------"
rm fcrontab_1
rm fcrontab_1 /usr/local/var/spool/root /usr/local/var/spool/root.orig
echo "Setting environment variables in fcrontabs"
for FCRON_ENV_VAR in $FCRON_ENV_VARS
do
Expand Down

0 comments on commit 16cb205

Please sign in to comment.