forked from axiom-data-science/docker-luigi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
65 lines (55 loc) · 1.74 KB
/
Dockerfile
File metadata and controls
65 lines (55 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
FROM phusion/baseimage:0.9.22
# Use baseimage-docker's init system
CMD ["/sbin/my_init", "--quiet"]
MAINTAINER Kyle Wilcox <kyle@axiomdatascience.com>
ENV DEBIAN_FRONTEND noninteractive
ENV LANG C.UTF-8
RUN apt-get update && apt-get install -y \
binutils \
build-essential \
bzip2 \
ca-certificates \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender1 \
wget \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Setup CONDA (https://hub.docker.com/r/continuumio/miniconda3/~/dockerfile/)
ENV MINICONDA_VERSION latest
ENV PYTHON_VERSION 3.5
RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \
curl -k -o /miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-$MINICONDA_VERSION-Linux-x86_64.sh && \
/bin/bash /miniconda.sh -b -p /opt/conda && \
rm /miniconda.sh && \
/opt/conda/bin/conda config \
--set always_yes yes \
--set changeps1 no \
--set show_channel_urls True \
&& \
/opt/conda/bin/conda config \
--add channels conda-forge \
&& \
/opt/conda/bin/conda install python=$PYTHON_VERSION && \
/opt/conda/bin/conda clean -a -y
ENV PATH /opt/conda/bin:$PATH
# Install requirements
COPY requirements.txt /tmp/
RUN conda install -y \
--file /tmp/requirements.txt \
&& \
conda clean -a -y
ENV LUIGI_VERSION 2.7.1
ENV LUIGI_CONFIG_DIR /etc/luigi/
RUN mkdir -p $LUIGI_CONFIG_DIR
COPY logging.conf $LUIGI_CONFIG_DIR
COPY luigi.conf $LUIGI_CONFIG_DIR
ENV LUIGI_CONFIG_PATH /etc/luigi/luigi.conf
VOLUME $LUIGI_CONFIG_DIR
RUN mkdir -p /luigi/state
VOLUME /luigi/state
EXPOSE 8082
RUN mkdir /etc/service/luigid
COPY luigid.sh /etc/service/luigid/run