File tree Expand file tree Collapse file tree 7 files changed +44
-10
lines changed Expand file tree Collapse file tree 7 files changed +44
-10
lines changed Original file line number Diff line number Diff line change @@ -351,12 +351,13 @@ ONBUILD RUN sudo -E PHP_EXTENSIONS="$PHP_EXTENSIONS" /usr/local/bin/install_sele
351
351
# |
352
352
# | Supercronic is a drop-in replacement for cron (for containers).
353
353
# |
354
+ ENV SUPERCRONIC_OPTIONS=
354
355
355
356
ONBUILD ARG INSTALL_CRON
356
357
ONBUILD RUN if [ -n "$INSTALL_CRON" ]; then \
357
- SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.5 /supercronic-linux-amd64 \
358
+ SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.9 /supercronic-linux-amd64 \
358
359
&& SUPERCRONIC=supercronic-linux-amd64 \
359
- && SUPERCRONIC_SHA1SUM=9aeb41e00cc7b71d30d33c57a2333f2c2581a201 \
360
+ && SUPERCRONIC_SHA1SUM=5ddf8ea26b56d4a7ff6faecdd8966610d5cb9d85 \
360
361
&& curl -fsSLO "$SUPERCRONIC_URL" \
361
362
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
362
363
&& chmod +x "$SUPERCRONIC" \
Original file line number Diff line number Diff line change @@ -256,12 +256,13 @@ ONBUILD RUN sudo -E PHP_EXTENSIONS="$PHP_EXTENSIONS" /usr/local/bin/install_sele
256
256
# |
257
257
# | Supercronic is a drop-in replacement for cron (for containers).
258
258
# |
259
+ ENV SUPERCRONIC_OPTIONS=
259
260
260
261
ONBUILD ARG INSTALL_CRON
261
262
ONBUILD RUN if [ -n "$INSTALL_CRON" ]; then \
262
- SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.5 /supercronic-linux-amd64 \
263
+ SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.9 /supercronic-linux-amd64 \
263
264
&& SUPERCRONIC=supercronic-linux-amd64 \
264
- && SUPERCRONIC_SHA1SUM=9aeb41e00cc7b71d30d33c57a2333f2c2581a201 \
265
+ && SUPERCRONIC_SHA1SUM=5ddf8ea26b56d4a7ff6faecdd8966610d5cb9d85 \
265
266
&& curl -fsSLO "$SUPERCRONIC_URL" \
266
267
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
267
268
&& chmod +x "$SUPERCRONIC" \
Original file line number Diff line number Diff line change @@ -279,12 +279,13 @@ ONBUILD RUN sudo -E PHP_EXTENSIONS="$PHP_EXTENSIONS" /usr/local/bin/install_sele
279
279
# |
280
280
# | Supercronic is a drop-in replacement for cron (for containers).
281
281
# |
282
+ ENV SUPERCRONIC_OPTIONS=
282
283
283
284
ONBUILD ARG INSTALL_CRON
284
285
ONBUILD RUN if [ -n "$INSTALL_CRON" ]; then \
285
- SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.5 /supercronic-linux-amd64 \
286
+ SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.9 /supercronic-linux-amd64 \
286
287
&& SUPERCRONIC=supercronic-linux-amd64 \
287
- && SUPERCRONIC_SHA1SUM=9aeb41e00cc7b71d30d33c57a2333f2c2581a201 \
288
+ && SUPERCRONIC_SHA1SUM=5ddf8ea26b56d4a7ff6faecdd8966610d5cb9d85 \
288
289
&& curl -fsSLO "$SUPERCRONIC_URL" \
289
290
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
290
291
&& chmod +x "$SUPERCRONIC" \
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ Below is a list of extensions available in this image:
146
146
147
147
** Enabled by default (in addition to extensions enabled in Slim image):** apcu mysqli pdo_mysql igbinary redis soap
148
148
149
- ** Available (can be enabled using environment variables):** amqp ast bcmath blackfire bz2 calendar dba ds enchant ev event exif mailparse msgpack gd gettext gmp gnupg igbinary imagick imap intl ldap mcrypt memcached mongodb pcntl pcov pdo_dblib pdo_pgsql pdo_sqlite pgsql pspell shmop snmp sockets sqlite3 swoole tidy uploadprogress weakref(-beta) xdebug xmlrpc xsl yaml
149
+ ** Available (can be enabled using environment variables):** amqp ast bcmath blackfire bz2 calendar dba ds enchant ev event exif mailparse msgpack gd gettext gmp gnupg igbinary imagick imap intl ldap mcrypt memcached mongodb pcntl pcov pdo_dblib pdo_pgsql pdo_sqlite pgsql pspell shmop snmp sockets sqlite3 swoole tidy weakref(-beta) xdebug xmlrpc xsl yaml
150
150
151
151
** Note** :
152
152
@@ -460,6 +460,21 @@ CRON_SCHEDULE_1=0 1 * * *
460
460
CRON_COMMAND_1=vendor/bin/console do:stuff
461
461
```
462
462
463
+ ### Supercronic options
464
+ To specify Supercronic options you can set the ` SUPERCRONIC_OPTIONS ` environment variable.
465
+
466
+ This can be used to enable duplicate jobs. Per default, Supercronic will wait for a given job to finish before that job is scheduled again.\
467
+ With the option ` -overlapping ` Supercronic will run duplicate instances of the jobs instead of waiting for them.
468
+
469
+ ``` bash
470
+ SUPERCRONIC_OPTIONS=-overlapping
471
+
472
+ # Or multiple options
473
+ SUPERCRONIC_OPTIONS=-overlapping -debug
474
+ ```
475
+
476
+ For more options see see the [ Supercronic Documentation] ( https://github.com/aptible/supercronic/blob/master/README.md ) .
477
+
463
478
## Launching commands on container startup
464
479
465
480
You can launch commands on container startup using the ` STARTUP_COMMAND_XXX ` environment variables.
Original file line number Diff line number Diff line change @@ -383,12 +383,13 @@ ONBUILD RUN sudo -E PHP_EXTENSIONS="$PHP_EXTENSIONS" /usr/local/bin/install_sele
383
383
# |
384
384
# | Supercronic is a drop-in replacement for cron (for containers).
385
385
# |
386
+ ENV SUPERCRONIC_OPTIONS=
386
387
387
388
ONBUILD ARG INSTALL_CRON
388
389
ONBUILD RUN if [ -n "$INSTALL_CRON" ]; then \
389
- SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.5 /supercronic-linux-amd64 \
390
+ SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.1.9 /supercronic-linux-amd64 \
390
391
&& SUPERCRONIC=supercronic-linux-amd64 \
391
- && SUPERCRONIC_SHA1SUM=9aeb41e00cc7b71d30d33c57a2333f2c2581a201 \
392
+ && SUPERCRONIC_SHA1SUM=5ddf8ea26b56d4a7ff6faecdd8966610d5cb9d85 \
392
393
&& curl -fsSLO "$SUPERCRONIC_URL" \
393
394
&& echo "${SUPERCRONIC_SHA1SUM} ${SUPERCRONIC}" | sha1sum -c - \
394
395
&& chmod +x "$SUPERCRONIC" \
Original file line number Diff line number Diff line change @@ -415,6 +415,21 @@ CRON_SCHEDULE_1=0 1 * * *
415
415
CRON_COMMAND_1=vendor/bin/console do:stuff
416
416
```
417
417
418
+ ### Supercronic options
419
+ To specify Supercronic options you can set the ` SUPERCRONIC_OPTIONS ` environment variable.
420
+
421
+ This can be used to enable duplicate jobs. Per default, Supercronic will wait for a given job to finish before that job is scheduled again.\
422
+ With the option ` -overlapping ` Supercronic will run duplicate instances of the jobs instead of waiting for them.
423
+
424
+ ``` bash
425
+ SUPERCRONIC_OPTIONS=-overlapping
426
+
427
+ # Or multiple options
428
+ SUPERCRONIC_OPTIONS=-overlapping -debug
429
+ ```
430
+
431
+ For more options see see the [ Supercronic Documentation] ( https://github.com/aptible/supercronic/blob/master/README.md ) .
432
+
418
433
## Launching commands on container startup
419
434
420
435
You can launch commands on container startup using the ` STARTUP_COMMAND_XXX ` environment variables.
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ chmod 0644 /tmp/generated_crontab
126
126
127
127
# If generated_crontab is not empty, start supercronic
128
128
if [[ -s /tmp/generated_crontab ]]; then
129
- supercronic /tmp/generated_crontab &
129
+ supercronic ${SUPERCRONIC_OPTIONS} /tmp/generated_crontab &
130
130
fi
131
131
132
132
if [[ " $IMAGE_VARIANT " == " apache" ]]; then
You can’t perform that action at this time.
0 commit comments