Dockerfile 3.31 KB
Newer Older
Marian Babik's avatar
Marian Babik committed
1
2
3
4
5
6
7
8
9
FROM gitlab-registry.cern.ch/etf/docker/etf-exp:latest

LABEL maintainer="Marian Babik <Marian.Babik@cern.ch>"
LABEL description="WLCG ETF CMS"
LABEL version="1.0"

ENV NSTREAM_ENABLED=0

# OSG Middleware
Marian Babik's avatar
Marian Babik committed
10
RUN yum -y install yum-priorities
Marian Babik's avatar
Marian Babik committed
11
RUN rpm -Uvh https://repo.opensciencegrid.org/osg/3.4/osg-3.4-el7-release-latest.rpm
Marian Babik's avatar
Marian Babik committed
12
RUN sed "7i priority=99" -i /etc/yum.repos.d/epel.repo
Marian Babik's avatar
Marian Babik committed
13
14
15
16
17
18
19
20
21

# Core deps
RUN yum -y install voms globus-gsi-sysconfig globus-gsi-cert-utils globus-gssapi-gsi globus-gss-assist \
                   globus-gsi-proxy-core globus-gsi-credential globus-gsi-callback globus-gsi-openssl-error \
                   globus-openssl-module globus-gsi-proxy-ssl globus-callout

# Condor client
RUN yum -y install condor condor-python

22
23
24
# Xroot
RUN yum -y install xrootd-python xrootd-client xrootd-libs xrootd-client-libs

25
26
# SRM todo: test removing globus deps
RUN yum -y install gfal2-all gfal2-python gfal2-util globus-ftp-client \
Marian Babik's avatar
Marian Babik committed
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
                   globus-gass-transfer globus-ftp-control globus-xio globus-gssapi-error \
                   globus-gsi-sysconfig globus-gsi-openssl-error globus-openssl-module \
                   globus-gsi-proxy-ssl

# MW env
COPY docker/etf-cms/config/grid-env.sh /etc/profile.d/
RUN echo "source /etc/profile.d/grid-env.sh" >> /opt/omd/sites/$CHECK_MK_SITE/.profile

# VOMS config
# RUN mkdir -p /etc/vomses/
# COPY ./config/cms-lcg-voms2.cern.ch /etc/vomses/
# COPY ./config/cms-voms2.cern.ch /etc/vomses/
#RUN mkdir -p /etc/grid-security/vomsdir/cms/
#COPY ./config/lcg-voms2.cern.ch.lsc /etc/grid-security/vomsdir/cms/
#COPY ./config/voms2.cern.ch.lsc /etc/grid-security/vomsdir/cms/

# ETF base plugins
RUN yum -y install nagios-plugins-wlcg-condor nagios-plugins-globus nagios-plugins

# ETF JESS setup
# RUN yum -y install python-jess python-nap && chmod 755 /usr/lib64/nagios/plugins/check_js
# COPY ./config/check_condor.cfg /etc/ncgx/metrics.d/
# COPY ./config/metrics.cfg /etc/ncgx/metrics.d/wlcg_cms.cfg

# ETF streaming
RUN mkdir -p /var/spool/nstream/outgoing && chmod 777 /var/spool/nstream/outgoing
RUN mkdir /etc/stompclt
COPY docker/etf-cms/config/ocsp_handler.cfg /etc/nstream/

# CMS config
COPY docker/etf-cms/config/cms_checks.cfg /etc/ncgx/conf.d/
COPY nagios/config/etf_plugin_cms.py /usr/lib/ncgx/x_plugins/
COPY nagios/config/wlcg_cms.cfg /etc/ncgx/metrics.d/

# CMS payload
RUN mkdir -p /usr/libexec/grid-monitoring/probes/org.cms/wnjob
COPY SiteTests/SE/* /usr/libexec/grid-monitoring/probes/org.cms/
Marian Babik's avatar
Marian Babik committed
64
65
COPY nagios/config/org.cms.lcgadmin /usr/libexec/grid-monitoring/probes/org.cms/wnjob/org.cms.lcgadmin
COPY nagios/config/org.cms.production /usr/libexec/grid-monitoring/probes/org.cms/wnjob/org.cms.production
Marian Babik's avatar
Marian Babik committed
66
COPY nagios/org.cms.glexec /usr/libexec/grid-monitoring/probes/org.cms/wnjob/org.cms.glexec
Marian Babik's avatar
Marian Babik committed
67
COPY SiteTests/MonteCarlo /usr/libexec/grid-monitoring/probes/org.cms/wnjob/org.cms/probes/org.cms/testjob/
Marian Babik's avatar
Marian Babik committed
68
69
COPY SiteTests/testjob/tests /usr/libexec/grid-monitoring/probes/org.cms/wnjob/org.cms/probes/org.cms/testjob/tests
COPY SiteTests/FroNtier/tests /usr/libexec/grid-monitoring/probes/org.cms/wnjob/org.cms/probes/org.cms/testjob/tests
Marian Babik's avatar
Marian Babik committed
70
COPY nagios/config/cms_glexec-etf /etc/cron.d/cms_glexec
Marian Babik's avatar
Marian Babik committed
71
72
73
74
75
76
77
78

# ETF config
#COPY ./config/service_template.tpl /etc/ncgx/templates/
COPY docker/etf-cms/config/ncgx.cfg /etc/ncgx/

EXPOSE 443 6557
COPY docker/etf-cms/docker-entrypoint.sh /
ENTRYPOINT /docker-entrypoint.sh