forked from DS-CNAF/htcondor-docker-centos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·32 lines (27 loc) · 1.32 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
# vim: ft=Dockerfile :
FROM centos:latest
MAINTAINER Matteo Panella <[email protected]>
ENV TINI_VERSION v0.9.0
COPY htcondor-stable-rhel7.repo /etc/yum.repos.d/
RUN set -ex \
&& mkdir -p /var/run/lock \
&& yum makecache fast \
&& yum --disablerepo=htcondor-stable -y install wget epel-release \
&& wget -qO /etc/pki/rpm-gpg/RPM-GPG-KEY-HTCondor http://research.cs.wisc.edu/htcondor/yum/RPM-GPG-KEY-HTCondor \
&& rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-HTCondor \
&& wget -qO /sbin/tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini \
&& chmod +x /sbin/tini \
&& yum -y remove wget \
&& yum -y install condor supervisor \
yum install --nogpg epel-release -y \
&& yum update -y \
&& rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro \
&& rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm \
&& yum install --nogpg ffmpeg ffmpeg-devel -y \
&& yum clean all
COPY supervisord.conf /etc/supervisord.conf
COPY condor.ini /etc/supervisord.d/condor.ini
COPY condor-wrapper.sh /usr/local/sbin/condor-wrapper.sh
COPY condor_config /etc/condor/condor_config
COPY run.sh /usr/local/sbin/run.sh
ENTRYPOINT ["/sbin/tini", "--", "/usr/local/sbin/run.sh"]