Dockerfile 1.63 KB
Newer Older
Elvin Sindrilaru's avatar
Elvin Sindrilaru committed
1
#
Elvin Sindrilaru's avatar
Elvin Sindrilaru committed
2
# Simple EOS Docker file
Elvin Sindrilaru's avatar
Elvin Sindrilaru committed
3
#
4
# Version 0.2
Elvin Sindrilaru's avatar
Elvin Sindrilaru committed
5

6
7
FROM centos:7
MAINTAINER Elvin Sindrilaru, esindril@cern.ch, CERN 2017
Elvin Sindrilaru's avatar
Elvin Sindrilaru committed
8

9
# Add extra repositories
jmakai's avatar
jmakai committed
10
ADD eos-docker/*.repo /etc/yum.repos.d/
Elvin Sindrilaru's avatar
Elvin Sindrilaru committed
11

12
13
14
# Add helper scripts
ADD eos-docker/image_scripts/*.sh /

15
# Add configuration files for EOS instance
jmakai's avatar
jmakai committed
16
ADD eos-docker/eos.sysconfig /etc/sysconfig/eos
17
ADD eos-docker/xrd.cf.* eos-docker/krb5.conf /etc/
18
ADD fstfmd.dict /var/eos/md/
19

20
21
# Docker will aggressively cache the following command, but this is fine, since
# these packages are not updated often.
22
ENV XRD_VERSION 4.6.1
Jozsef Makai's avatar
Jozsef Makai committed
23
24
RUN yum clean all; \
    yum -y --nogpg update; \
25
    yum -y --nogpg install \
26
    heimdal-server heimdal-workstation \
27
    krb5-workstation yum-plugin-priorities \
28
    createrepo initscripts less net-tools nmap-ncat \
29
    gdb git parallel compat-libf2c-34 libgfortran \
30
31
32
33
34
35
36
37
    xrootd \
    xrootd-client \
    xrootd-client-libs \
    xrootd-client-devel \
    xrootd-libs \
    xrootd-server-devel \
    xrootd-server-libs \
    xrootd-python
38

39
40
# Install new EOS from created repo - the ADD command will reset the docker cache,
# and any commands after that point will be uncached.
41
ENV EOSREPODIR="/repo/eos"
Jozsef Makai's avatar
Jozsef Makai committed
42
ADD cc7_artifacts ${EOSREPODIR}
43
44
45
46

# Special packages, must be installed un-cached.
RUN yum clean all; \
    yum -y --nogpg install \
47
    quarkdb grid-hammer grid-hammer-debuginfo
48

49
50
51
RUN createrepo ${EOSREPODIR}; \
    echo -e "[eos-artifacts]\nname=EOS artifacts\nbaseurl=file://${EOSREPODIR}\ngpgcheck=0\nenabled=1\npriority=1" >> /etc/yum.repos.d/eos.repo; \
    yum -y --nogpg install \
52
    quarkdb eos-server eos-testkeytab eos-archive eos-client \
53
    eos-debuginfo eos-fuse eos-test
jmakai's avatar
jmakai committed
54

55
ENTRYPOINT ["/bin/bash"]