Dockerfile 958 Bytes
Newer Older
Andrea Manzi's avatar
Andrea Manzi committed
1
2
3
FROM centos:7
MAINTAINER CERN

4
#add EPEL repos
5
ADD  http://linuxsoft.cern.ch/epel/epel-release-latest-7.noarch.rpm  /tmp/epel-release-7.noarch.rpm
6
RUN  yum localinstall /tmp/epel-release-7.noarch.rpm -y \
Andrea Manzi's avatar
Andrea Manzi committed
7
        && /usr/bin/yum --enablerepo=*-testing clean all \
8
        && rm /tmp/epel-release-7.noarch.rpm \
Andrea Manzi's avatar
Andrea Manzi committed
9
10
11
        && rm -rf /var/cache/yum

# add FTS repo
12
13
ARG ftsrepo=http://fts-repo.web.cern.ch/fts-repo/fts3-continuous-el7.repo
ADD $ftsrepo /etc/yum.repos.d/fts.repo
Andrea Manzi's avatar
Andrea Manzi committed
14
15

#add DMC repo
16
17
ARG dmcrepo=http://dmc-repo.web.cern.ch/dmc-repo/dmc-ci-el7.repo
ADD $dmcrepo /etc/yum.repos.d/dmc.repo
Andrea Manzi's avatar
Andrea Manzi committed
18

19
RUN /usr/bin/yum clean all
Andrea Manzi's avatar
Andrea Manzi committed
20
21
22
23
24
25

RUN /usr/bin/yum install -y fts-rest-selinux fts-rest httpd MySQL-python 

RUN /usr/bin/yum install -y voms-config-wlcg  voms-config-vo-dteam

#add user
Andrea Manzi's avatar
Andrea Manzi committed
26
27
RUN useradd fts3 && usermod -a -G fts3 apache
RUN mkdir -p /var/log/fts3rest && chown fts3:fts3 /var/log/fts3rest
Andrea Manzi's avatar
Andrea Manzi committed
28

Andrea Manzi's avatar
Andrea Manzi committed
29
#expose port
Andrea Manzi's avatar
Andrea Manzi committed
30
EXPOSE 8446
Andrea Manzi's avatar
Andrea Manzi committed
31
32

CMD ["/usr/sbin/apachectl","-DFOREGROUND"]