Commit c3989edb authored by Andrea Manzi's avatar Andrea Manzi
Browse files

Merge branch 'docker' into develop

parents 994dab22 e2026225
image: docker:latest
before_script:
- docker info
- docker login -p "${REGISTRY_PASSWD}" -u "${REGISTRY_USER}" gitlab-registry.cern.ch
after_script:
- docker logout gitlab-registry.cern.ch
job1:
script:
- docker build -t gitlab-registry.cern.ch/fts/fts-rest packaging/docker
- docker push gitlab-registry.cern.ch/fts/fts-rest
tags:
- docker
FROM centos:7
MAINTAINER CERN
# Add cern repos
ADD http://linux.web.cern.ch/linux/centos7/CentOS-CERN.repo /etc/yum.repos.d/CentOS-CERN.repo
ADD http://linuxsoft.cern.ch/cern/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7 /tmp/RPM-GPG-KEY-cern
RUN /usr/bin/rpm --import /tmp/RPM-GPG-KEY-cern \
&& /usr/bin/yum --enablerepo=*-testing clean all \
&& rm /tmp/RPM-GPG-KEY-cern \
&& rm -rf /var/cache/yum
# Add EPEL repos
ADD http://mirror.switch.ch/ftp/mirror/epel/7/x86_64/e/epel-release-7-8.noarch.rpm /tmp/epel-release-7-8.noarch.rpm
RUN yum localinstall /tmp/epel-release-7-8.noarch.rpm -y \
&& /usr/bin/yum --enablerepo=*-testing clean all \
&& rm /tmp/epel-release-7-8.noarch.rpm \
&& rm -rf /var/cache/yum
# add FTS repo
ADD http://grid-deployment.web.cern.ch/grid-deployment/dms/fts3/repos/fts3-continuous-el7.repo /etc/yum.repos.d/fts.repo
#add DMC repo
ADD http://grid-deployment.web.cern.ch/grid-deployment/dms/lcgutil/repos/dmc-ci-el7.repo /etc/yum.repos.d/dmc.repo
#install fts packages
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
RUN usermod -a -G fts3 apache
#expose ports
EXPOSE 8446
CMD /bin/bash
fts-rest:
build: .
volumes:
- /etc/fts3:/etc/fts3
- /var/log/fts3rest:/var/log/fts3rest
entrypoint: /usr/sbin/apachectl -DFOREGROUND
ports:
- "8446:8446"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment