-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
31 lines (25 loc) · 959 Bytes
/
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
FROM opensciencegrid/software-base:3.6-el8-release
# Install dependencies (application, Apache)
RUN \
yum update -y \
&& yum install -y \
gcc \
python3-devel \
python3-pip \
&& yum install -y \
httpd \
httpd-devel \
&& yum clean all && rm -rf /var/cache/yum/* \
&& mkdir /app
WORKDIR /app
# Install application dependencies
COPY pyproject.toml setup.cfg examples/condor_lock.patch /app/
COPY src /app/src
RUN pip3 install --upgrade pip setuptools && pip3 install --no-cache-dir /app
RUN touch /etc/sysconfig/httpd && mkdir /wsgi && cd / && patch -p0 < /app/condor_lock.patch && \
curl -L https://dl.k8s.io/release/v1.24.0/bin/linux/amd64/kubectl > /app/kubectl && \
chmod +x /app/kubectl
COPY examples/apache.conf /etc/httpd/conf.d/htcondor-autoscale-manager.conf
COPY examples/supervisor-apache.conf /etc/supervisord.d/40-apache.conf
COPY examples/htcondor_autoscale.wsgi /wsgi
EXPOSE 8080/tcp