-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (28 loc) · 1.16 KB
/
Dockerfile
File metadata and controls
36 lines (28 loc) · 1.16 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
# Agave clients service for generating OAuth2 client applications for the WSO2 API Manager platform.
# Image: jstubbs/agave_clients
FROM jstubbs/template_compiler
MAINTAINER Joe Stubbs
RUN apt-get update
RUN apt-get install -y python python-dev python-pip git
RUN apt-get install -y apache2 apache2-mpm-prefork apache2-utils libexpat1 ssl-cert
RUN apt-get install -y libapache2-mod-wsgi
RUN apt-get install -y lynx
RUN apt-get install -y libldap2-dev libsasl2-dev
RUN apt-get install -y python-mysqldb
RUN mkdir /code
ADD requirements.txt /code/
RUN pip install -r /code/requirements.txt
# Manually set up the apache environment variables
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
ENV APACHE_LOCK_DIR /var/lock/apache2
ENV APACHE_PID_FILE /var/run/apache2.pid
ADD agave_clients /code/agave_clients/agave_clients
ADD manage.py /code/agave_clients/
RUN touch /code/agave_clients/agave_clients/running_in_docker
RUN chmod o+rw -R /code/agave_clients/
ADD deployment/wsgi.load /etc/apache2/mods-available/
ADD deployment/apache2.conf /etc/apache2/sites-enabled/000-default.conf
EXPOSE 80
CMD /usr/sbin/apache2ctl -D FOREGROUND