From 5d1a090eaa8c5e737ba7cd987998ad2fa9e40e3a Mon Sep 17 00:00:00 2001 From: kev Date: Wed, 24 May 2017 15:26:14 +0800 Subject: [PATCH] add luigi --- README.md | 1 + luigi/Dockerfile | 26 ++++++++++++++++++++++++++ luigi/README.md | 11 +++++++++++ luigi/docker-compose.yml | 5 +++++ 4 files changed, 43 insertions(+) create mode 100644 luigi/Dockerfile create mode 100644 luigi/README.md create mode 100644 luigi/docker-compose.yml diff --git a/README.md b/README.md index 2808d3b..ceeaed8 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,7 @@ A collection of delicious docker recipes. - [x] httpbin :+1: - [x] hubot :octocat: - [x] influxdb +- [x] luigi - [x] mariadb - [x] mariadb-arm - [x] monit diff --git a/luigi/Dockerfile b/luigi/Dockerfile new file mode 100644 index 0000000..8dd41a4 --- /dev/null +++ b/luigi/Dockerfile @@ -0,0 +1,26 @@ +# +# Dockerfile for luigi +# + +FROM alpine +MAINTAINER kev + +ENV LUIGI_HOME_DIR=/opt/luigi +ENV LUIGI_CONFIG_PATH=/opt/luigi/etc/luigi.cfg +ENV LUIGI_LOG_DIR=/opt/luigi/log +ENV LUIGI_STATE_PATH=/opt/luigi/var/state.pickle + +WORKDIR $LUIGI_HOME_DIR + +RUN set -xe \ + && apk add --no-cache python3 \ + && pip3 install luigi \ + && mkdir -p etc log run var \ + && touch $LUIGI_CONFIG_PATH + +VOLUME $LUIGI_HOME_DIR + +EXPOSE 8082 + +CMD luigid --logdir $LUIGI_LOG_DIR \ + --state-path $LUIGI_STATE_PATH diff --git a/luigi/README.md b/luigi/README.md new file mode 100644 index 0000000..b602c1d --- /dev/null +++ b/luigi/README.md @@ -0,0 +1,11 @@ +luigi +===== + +![](https://raw.githubusercontent.com/spotify/luigi/master/doc/luigi.png) + +[Luigi][1] is a Python (2.7, 3.3, 3.4, 3.5) package that helps you build +complex pipelines of batch jobs. It handles dependency resolution, workflow +management, visualization, handling failures, command line integration, and +much more. + +[1]: https://github.com/spotify/luigi diff --git a/luigi/docker-compose.yml b/luigi/docker-compose.yml new file mode 100644 index 0000000..a6e1a3e --- /dev/null +++ b/luigi/docker-compose.yml @@ -0,0 +1,5 @@ +luigi: + image: vimagick/luigi + ports: + - "8082:8082" + restart: always