mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-04-23 12:08:42 +02:00
add ndscheduler
This commit is contained in:
parent
4318f18a12
commit
b32329cd1c
@ -114,6 +114,7 @@ A collection of delicious docker recipes.
|
|||||||
- [x] moodle :beetle:
|
- [x] moodle :beetle:
|
||||||
- [x] mosquitto
|
- [x] mosquitto
|
||||||
- [x] motion-arm :+1:
|
- [x] motion-arm :+1:
|
||||||
|
- [x] ndscheduler
|
||||||
- [x] nginx
|
- [x] nginx
|
||||||
- [x] ntopng
|
- [x] ntopng
|
||||||
- [x] nullmailer
|
- [x] nullmailer
|
||||||
|
20
ndscheduler/Dockerfile
Normal file
20
ndscheduler/Dockerfile
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#
|
||||||
|
# Dockerfile for ndscheduler
|
||||||
|
#
|
||||||
|
|
||||||
|
FROM python:2-alpine
|
||||||
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
|
RUN set -xe \
|
||||||
|
&& apk add --no-cache sqlite \
|
||||||
|
&& pip install ndscheduler requests \
|
||||||
|
&& rm -f /usr/local/lib/python2.7/site-packages/simple_scheduler/jobs/apns_job.py*
|
||||||
|
|
||||||
|
WORKDIR /opt/ndscheduler
|
||||||
|
VOLUME /opt/ndscheduler
|
||||||
|
|
||||||
|
EXPOSE 8888
|
||||||
|
|
||||||
|
ENV NDSCHEDULER_SETTINGS_MODULE=simple_scheduler.settings
|
||||||
|
|
||||||
|
CMD ["python", "-c", "from ndscheduler.server.server import SchedulerServer; SchedulerServer.run()"]
|
7
ndscheduler/README.md
Normal file
7
ndscheduler/README.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
ndscheduler
|
||||||
|
===========
|
||||||
|
|
||||||
|
[ndscheduler][1] is a flexible python library for building your own cron-like
|
||||||
|
system, with REST APIs and a Web UI.
|
||||||
|
|
||||||
|
[1]: https://github.com/Nextdoor/ndscheduler
|
9
ndscheduler/docker-compose.yml
Normal file
9
ndscheduler/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
version: "3.8"
|
||||||
|
services:
|
||||||
|
ndscheduler:
|
||||||
|
image: vimagick/ndscheduler
|
||||||
|
ports:
|
||||||
|
- "8888:8888"
|
||||||
|
volumes:
|
||||||
|
- ./data:/opt/ndscheduler
|
||||||
|
restart: unless-stopped
|
Loading…
x
Reference in New Issue
Block a user