Dockerfile-release 950 Bytes
Newer Older
1
2
3
4
FROM centos:7
MAINTAINER CERN

#add EPEL repos
5
ADD  http://linuxsoft.cern.ch/epel/epel-release-latest-7.noarch.rpm  /tmp/epel-release-7.noarch.rpm
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
RUN  yum localinstall /tmp/epel-release-7.noarch.rpm -y \
        && /usr/bin/yum --enablerepo=*-testing clean all \
        && rm /tmp/epel-release-7.noarch.rpm \
        && rm -rf /var/cache/yum

# add FTS repo
ARG ftsrepo=http://fts-repo.web.cern.ch/fts-repo/fts3-rc-el7.repo
ADD $ftsrepo /etc/yum.repos.d/fts.repo

#add DMC repo
ARG dmcrepo=http://dmc-repo.web.cern.ch/dmc-repo/dmc-rc-el7.repo
ADD $dmcrepo /etc/yum.repos.d/dmc.repo

RUN /usr/bin/yum clean all

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
RUN useradd fts3 && usermod -a -G fts3 apache
RUN mkdir -p /var/log/fts3rest && chown fts3:fts3 /var/log/fts3rest

#expose port
EXPOSE 8446

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