forked from WIPACrepo/pyglidein
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (29 loc) · 1.16 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
33
34
35
36
37
38
39
40
41
# A RHEL7+cuda container running a pyglidein
FROM nvidia/cuda:10.2-runtime-centos7
MAINTAINER Claudio Kopper <[email protected]>
ENV TINI_VERSION v0.18.0
WORKDIR /root
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /sbin/tini
RUN chmod +x /sbin/tini
# Enable OpenCL
RUN yum install -y epel-release && \
yum install -y ocl-icd ocl-icd-devel clinfo && \
rm -rf /var/cache/yum && \
mkdir -p /etc/OpenCL/vendors && \
echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
RUN yum -y install git wget curl libtool-ltdl libgomp redhat-lsb-core freetype libquadmath && \
rm -rf /var/cache/yum
RUN useradd --create-home --shell /bin/bash condor
RUN mkdir -p /home/condor/pyglidein
RUN curl -o /home/condor/pyglidein/glidein.tar.gz http://prod-exe.icecube.wisc.edu/glidein-RHEL_7_x86_64.tar.gz
COPY pyglidein/ /home/condor/pyglidein
RUN chown -R condor:condor /home/condor/pyglidein
USER condor
WORKDIR /home/condor/pyglidein
ENV SITE=dockerized_pyglidein \
CPUS=1 \
GPUS=0 \
MEMORY=4000 \
DISK=8000000 \
WALLTIME=72000
ENTRYPOINT ["/sbin/tini", "-g", "--", "/home/condor/pyglidein/glidein_start_in_docker.sh"]