Initial commit
This commit is contained in:
commit
d79ae8fdd0
|
@ -0,0 +1,19 @@
|
|||
FROM ubuntu:xenial
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y wget python3-pip python-pip cron && \
|
||||
pip install --upgrade pip && \
|
||||
pip3 install --upgrade pip && \
|
||||
find /etc/cron* -type f -delete && \
|
||||
touch /etc/crontab && \
|
||||
useradd ubuntu && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ADD start /start
|
||||
ADD crontab /etc/cron.d/base
|
||||
|
||||
RUN chmod +x /start && \
|
||||
mkdir -p /srv/cron && \
|
||||
touch /srv/cron/crontab
|
||||
|
||||
ENTRYPOINT ["/start"]
|
|
@ -0,0 +1,9 @@
|
|||
docker-cron
|
||||
===========
|
||||
|
||||
Cron in a container. Run any random crap you need.
|
||||
|
||||
The following paths should be added:
|
||||
|
||||
* `/srv/cron/startup` - a script to execute when the container starts
|
||||
* `/srv/cron/crontab` - /etc/cron.d-style crontab
|
|
@ -0,0 +1,2 @@
|
|||
SHELL=/bin/sh
|
||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
Loading…
Reference in New Issue