Skip to content

Commit

Permalink
Merge pull request #14 from jrha/xrootd
Browse files Browse the repository at this point in the history
Add Dockerfile and dependencies for xrootd containers
  • Loading branch information
Tom-Byrne authored Jul 4, 2019
2 parents 35cfb8d + 629c651 commit 97cce39
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 0 deletions.
30 changes: 30 additions & 0 deletions xrootd/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM centos:7

# xrootd user - needs to be consistent with the host
RUN groupadd --gid 65432 xrootd && \
useradd --gid xrootd --uid 65432 xrootd

# Repositories
COPY *.repo /etc/yum.repos.d/

# Ceph
RUN yum -y install ceph-12.2.12-0.el7.x86_64 \
ceph-common-12.2.12-0.el7.x86_64

# xrootd
RUN yum -y install xrootd-ceph \
xrootd-client \
xrootd-client-libs \
xrootd-libs \
xrootd-server \
xrootd-server-libs \
jemalloc

# For N2N mapping
RUN yum -y install http://t2.unl.edu/store/osg/3.4/el7/contrib/x86_64/xrootd-cmstfc-1.5.2-3.osg34.el7.x86_64.rpm

# Needed by the health-check scripts
RUN yum -y install openssl

COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
8 changes: 8 additions & 0 deletions xrootd/ceph-el7-x86_64.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[ceph-el7-x86_64]
name = ceph-el7-x86_64
baseurl = http://mirrors.gridpp.rl.ac.uk/current/ceph-el7-x86_64/RPMS.luminous/
metadata_expire = 7d
enabled = 1
gpgcheck = 0
priority = 40
skip_if_unavailable = 0
4 changes: 4 additions & 0 deletions xrootd/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
export XrdSecSSSKT=/etc/gateway/sss.keytab.grp
export LD_PRELOAD=/usr/lib64/libjemalloc.so.1
/usr/bin/xrootd -c /etc/xrootd/xrootd-ceph.cfg -k fifo -s /var/run/xrootd/xrootd-ceph.pid -n ceph
9 changes: 9 additions & 0 deletions xrootd/epel-7-x86_64.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[epel-7-x86_64]
name = epel-7-x86_64
baseurl = http://mirrors.gridpp.rl.ac.uk/current/epel-7-x86_64/RPMS.base/
metadata_expire = 7d
exclude = *ceph* librados* librbd* librgw* python-rados python-rbd rbd-fuse rbd-mirror rbd-nbd xrootd*
enabled = 1
gpgcheck = 0
priority = 50
skip_if_unavailable = 0
8 changes: 8 additions & 0 deletions xrootd/xrootd-scd-el7-x86_64.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[xrootd-scd-el7-x86_64]
name = xrootd-scd-el7-x86_64
baseurl = http://repos.gridpp.rl.ac.uk/yum/xrootd-scd/luminous/el7/x86_64/
metadata_expire = 7d
enabled = 1
gpgcheck = 0
priority = 30
skip_if_unavailable = 0

0 comments on commit 97cce39

Please sign in to comment.