-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile.testing
41 lines (31 loc) · 1.31 KB
/
Dockerfile.testing
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
ARG IMAGE_BASE_TAG=release
FROM opensciencegrid/software-base:23-el9-$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 logrotate && \
yum install -y make && \
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 registry run_local.sh requirements.txt /opt/registry/
RUN pip3 install -U pip && pip3 install -r /opt/registry/requirements.txt
# Use our weird grid-security cert/key location
RUN rm /etc/httpd/conf.d/ssl.conf
# Setup cron job for logrotate to run as root every day
RUN echo "0 0 * * * root /usr/sbin/logrotate /etc/logrotate.d/httpd >> /var/log/cron 2>&1" > /etc/cron.d/logrotate-httpd
COPY register.py /usr/bin
COPY supervisor-apache.conf /etc/supervisord.d/40-apache.conf
COPY logrotate-http.conf /etc/logrotate.d/httpd
COPY examples/apache.conf /etc/httpd/conf.d/
ENV CONFIG_DIR=/srv
#ENTRYPOINT ["/opt/registry/run_local.sh"]
#CMD ["--host=0.0.0.0"]