-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
74 lines (55 loc) · 2.13 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#------------------------------
# htcondorcm imagen cm de condor sobre ubuntu
#------------------------------
# changelog
# - 1.0: basada en sshbaseimage, htcondor 9.0.0
#------------------------------
#FROM ghcr.io/darfig/sshbaseimage:latest
FROM ubuntu:20.04
LABEL manteiner="https://github.com/DarFig"
LABEL licenses="Apache-2.0"
ENV VERSION=9.0.0
ENV VERSION_M=9.0
ENV HTCONDOR_LIST=/etc/apt/sources.list.d/htcondor.list
#
RUN apt-get update && \
apt-get install -y software-properties-common && \
apt-get install -y htop vim nano curl && \
apt-get install -y openssh-server iputils-ping
#RUN echo "use ROLE : CentralManager"
ENV HTCONDOR_PASSWORD="NONE"
ENV CENTRAL_MANAGER="127.0.0.1"
#ADD https://get.htcondor.org /getcondor.sh
#RUN chmod u+x /getcondor.sh
#RUN /getcondor.sh --no-dry-run --channel stable
RUN apt-get install -y gnupg
RUN sh -c 'curl -fsSL https://research.cs.wisc.edu/htcondor/repo/keys/HTCondor-9.0-Key | apt-key add -'
RUN sh -c 'apt-get install apt-transport-https'
RUN sh -c 'echo "deb [arch=amd64] https://research.cs.wisc.edu/htcondor/repo/ubuntu/9.0 focal main" > /etc/apt/sources.list.d/htcondor.list'
RUN sh -c 'echo "deb-src https://research.cs.wisc.edu/htcondor/repo/ubuntu/9.0 focal main" >> /etc/apt/sources.list.d/htcondor.list'
RUN sh -c 'apt-get update'
RUN sh -c 'apt-get install -y procps'
RUN sh -c 'DEBIAN_FRONTEND=noninteractive apt-get install -y keyboard-configuration console-setup tzdata'
RUN sh -c 'apt-get install -y htcondor'
# add files
#ADD configure.sh ./configure.sh
#RUN chmod a+x ./configure.sh
ADD run.sh /run.sh
RUN chmod a+x /run.sh
#ldap env-var
ENV LDAP_URI="ldap://"
ENV LDAP_BASE="dc=default,dc=com"
ENV LDAP_VERSION="3"
ENV PAM_PASSWORD="md5"
# config ldap
RUN touch /etc/ldap.conf
ADD common-session /etc/pam.d/common-session
ADD common-auth /etc/pam.d/common-auth
ADD nsswitch.conf /etc/nsswitch.conf
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -q build-essential apt-utils &&\
apt-get install -y nscd ldap-utils &&\
DEBIAN_FRONTEND=noninteractive apt-get install -y -q ldap-auth-client
EXPOSE 9618
EXPOSE 22
#ENTRYPOINT ["configure.sh"]
ENTRYPOINT ["/run.sh"]