Update py27 docker file.
-FROM cern/cc7-base
+FROM centos:7
-# environment variables
-ENV WORKDIR /root/law
+# labels
+LABEL name="law_py27"
+LABEL version="0.0.3"
# copy files
COPY entrypoint.sh /root/entrypoint.sh
-# install software
+# workdor
+WORKDIR /root/law
+
+# expose ports
+EXPOSE 8082
+
+# basic environment variables
+ENV WORKDIR /root/law
+
+# prepare yum
RUN yum -y update; yum clean all
RUN yum -y install yum-plugin-priorities; yum clean all
-RUN yum -y install which nano screen wget git cmake curl-devel json-c-devel openssl-devel gcc-c++; yum clean all
-RUN yum -y install gfal2-all gfal2-devel gfal2-python; yum clean all
-RUN git clone https://github.com/cern-it-sdc-id/gfal2-dropbox.git; \
- cd gfal2-dropbox; mkdir build && cd build; \
- cmake .. -DPLUGIN_INSTALL_DIR=/usr/lib64/gfal2-plugins && make && make install; \
- cd ../..; rm -rf gfal2-dropbox
-# grid software
-RUN rpm -Uvh https://repo.grid.iu.edu/osg/3.3/osg-3.3-el7-release-latest.rpm
+# basic software
+RUN yum -y install which wget nano screen git cmake curl-devel json-c-devel openssl-devel gcc-c++; yum clean all
+
+# gfal2
+RUN yum install -y epel-release; yum clean all
+RUN yum -y install gfal2-all gfal2-devel gfal2-python; yum clean all
+RUN git clone https://github.com/cern-it-sdc-id/gfal2-dropbox.git && \
+ cd gfal2-dropbox && \
+ mkdir build && cd build && \
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr && make && make install && \
+ cd ../.. && rm -rf gfal2-dropbox
+
+# grid software, TODO: this should be moved out of the base image
+RUN rpm -Uvh https://repo.grid.iu.edu/osg/3.4/osg-3.4-el7-release-latest.rpm
+RUN rpm --import https://repo.grid.iu.edu/osg/3.4/RPM-GPG-KEY-OSG
RUN yum -y update; yum clean all
-RUN yum -y install yum install osg-ca-certs osg-voms voms-clients
+RUN yum -y install CERN-CA-certs osg-ca-certs osg-voms voms-clients; yum clean all
-# install python software
+# python software
RUN yum -y install install python-setuptools; yum clean all
RUN easy_install pip
-# install python packages
+# python packages
RUN pip install luigi six
# load the law code
RUN git clone https://github.com/riga/law $WORKDIR
-# the workdir
-WORKDIR /root/law
-
-# expose ports
-EXPOSE 8082
-
# entry point
ENTRYPOINT ["bash", "/root/entrypoint.sh"]
