-
Notifications
You must be signed in to change notification settings - Fork 3
/
testing.Dockerfile
37 lines (29 loc) · 1.09 KB
/
testing.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
ARG IMAGE_BASE_TAG=release
FROM opensciencegrid/software-base:3.6-el7-$IMAGE_BASE_TAG
LABEL maintainer OSG Software <[email protected]>
RUN \
yum update -y && \
(yum install -y git-core || yum install -y git) && \
yum install -y --enablerepo=osg-upcoming condor && \
yum install -y python3-pip httpd mod_auth_openidc mod_ssl python3-mod_wsgi && \
yum clean all && rm -rf /var/cache/yum/*
RUN \
pushd /tmp && \
git clone https://github.com/opensciencegrid/osg-ca-generator.git && \
pushd osg-ca-generator && \
make install && \
osg-ca-generator --host && \
popd && \
popd
COPY portal run_local.sh requirements.txt /opt/portal/
RUN pip3 install -U pip && pip3 install -r /opt/portal/requirements.txt
COPY register.py /usr/bin
COPY supervisor-apache.conf /etc/supervisord.d/40-apache.conf
COPY examples/apache.conf /etc/httpd/conf.d/
COPY config.py wsgi.py portal /srv/
COPY portal /srv/portal/
COPY documentation /srv/documentation/
ENV PYTHONUNBUFFERED=1
ENV CONFIG_PATH=/srv/config.py
#ENTRYPOINT ["/opt/portal/run_local.sh"]
#CMD ["--host=0.0.0.0"]