Commit 41bbf621 authored by James Clark's avatar James Clark
Browse files

Some dockerfile simplification

parent 9b459806
Pipeline #96722 passed with stages
in 1 minute and 2 seconds
FROM centos:latest
FROM centos:7
ARG version
MAINTAINER James Alexander Clark <james.clark@ligo.org>
RUN echo "Building gwrucio"
RUN curl -o lscsoft-production-config-1.3-1.el7.noarch.rpm http://software.ligo.org/lscsoft/scientific/7/x86_64/production/l/lscsoft-production-config-1.3-1.el7.noarch.rpm && \
rpm -ivh lscsoft-production-config-1.3-1.el7.noarch.rpm && \
rpm -ivh http://repo.opensciencegrid.org/osg/3.4/osg-3.4-el7-release-latest.rpm && \
rm lscsoft-production-config-1.3-1.el7.noarch.rpm
RUN rpm -ivh http://software.ligo.org/lscsoft/scientific/7/x86_64/production/l/lscsoft-production-config-1.3-1.el7.noarch.rpm && \
rpm -ivh http://repo.opensciencegrid.org/osg/3.4/osg-3.4-el7-release-latest.rpm
RUN yum install -y epel-release.noarch && \
yum upgrade -y
......@@ -23,18 +21,14 @@ RUN yum install -y \
python-pip \
vim \
vo-client \
voms-clients-cpp
voms-clients-cpp \
yum clean all && \
rm -rf /var/cache/yum
RUN yum install -y \
gfal2 \
gfal2-plugin-file \
gfal2-plugin-gridftp \
gfal2-plugin-http \
gfal2-plugin-srm \
gfal2-plugin-xrootd \
gfal2-all \
gfal2-python \
gfal2-util \
xrootd-client \
yum clean all && \
rm -rf /var/cache/yum
......@@ -42,13 +36,16 @@ RUN yum install -y \
RUN pip install --upgrade pip setuptools
RUN rm -rf /usr/lib/python2.7/site-packages/ipaddress*
RUN pip install --no-cache-dir \
git+https://git.ligo.org/james-clark/gwrucio.git#egg=gwrucio \
lalsuite \
lscsoft-glue \
psycopg2-binary \
PyYAML \
rucio[postgresql]
RUN pip install --no-cache-dir \
git+https://git.ligo.org/james-clark/gwrucio.git#egg=gwrucio \
git+https://git.ligo.org/rucio/igwn-rucio-lfn2pfn.git#egg=igwn-rucio-lfn2pfn
# Directory setup for rucio configuration and data directory bindings
RUN mkdir -p /opt/rucio/etc /archive /net /hdfs /local
......
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