This repository has been archived by the owner on Jan 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
51 lines (42 loc) · 1.92 KB
/
Dockerfile
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
# Harvest
FROM reslnops01.research.chop.edu:5000/django_baseimage-master:d87766f
MAINTAINER Aaron Browne <brownea@email.chop.edu>
# Install postgresql client
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" > /etc/apt/sources.list.d/pgdg.list
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN apt-get update -qq --fix-missing
RUN apt-get install -y postgresql-client-9.3
# Install required python packages not provided by django_baseimage
# Harvest components
RUN /opt/ve/bin/pip install "avocado>=2.3.0,<2.4"
RUN /opt/ve/bin/pip install "serrano>=2.3.0,<2.4"
RUN /opt/ve/bin/pip install "modeltree>=1.1.7,<1.2"
RUN /opt/ve/bin/pip install "django-haystack>=2.0,<2.2"
RUN /opt/ve/bin/pip install "python-memcached==1.53"
# Harvest extensions
RUN /opt/ve/bin/pip install "whoosh>=2.6,<2.7"
RUN /opt/ve/bin/pip install "openpyxl"
RUN /opt/ve/bin/pip install "csvkit"
RUN /opt/ve/bin/pip install "git+http://github.research.chop.edu/cbmi/django-chopauth.git#egg=django-chopauth"
RUN /opt/ve/bin/pip install "django-siteauth==1.0.0"
# Testing requirements
RUN /opt/ve/bin/pip install "selenium"
RUN /opt/ve/bin/pip install "coveralls"
RUN /opt/ve/bin/pip install "discover"
RUN /opt/ve/bin/pip install "requests"
RUN /opt/ve/bin/pip install "pytz"
# Add Optional Logstash Logging Support
RUN curl https://download.elasticsearch.org/logstash/logstash/logstash-1.4.2.tar.gz -o /tmp/logstash-1.4.2.tar.gz
RUN tar -xzf /tmp/logstash-1.4.2.tar.gz -C /opt/
RUN mv /opt/logstash-1.4.2 /opt/logstash
RUN chmod +x -R /opt/logstash/bin/
# Add the application files
ADD . /opt/app/
# Ensure all python requirements are met
ENV APP_NAME omop_harvest
RUN /opt/ve/bin/pip install -r /opt/app/requirements.txt --use-mirrors
# Add custom application initialization and run scripts that:
# 1. don't try to get project settings from etcd
COPY cid/my_init.d /etc/my_init.d
COPY cid/service /etc/service
EXPOSE 8000