Commit e0b0b7a6 authored by Clemens Lange's avatar Clemens Lange
Browse files

Merge branch 'slc5_repo' into 'master'

Install updated software for SLC5 image and point to updated mirror

See merge request cms-cloud/cmssw-docker!25
parents a531e31e 503647c3
# SLC5 OS capable of using/running CMS software release(s).
# Make the base image configurable:
ARG BASEIMAGE=cern/slc5-base:latest
ARG BASEIMAGE=cern/slc5-base:20190724
# Set up the SLC5 CMSSW base:
FROM ${BASEIMAGE}
......@@ -27,6 +27,8 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
USER root
WORKDIR /root
ADD epel.repo /etc/yum.repos.d/epel.repo
RUN yum install -y libXft-devel libX11-devel libXpm-devel libXext-devel mesa-libGLU-devel \
libXmu libXpm libSM libXft libXext \
wget git \
......@@ -51,6 +53,9 @@ RUN wget http://repository.egi.eu/sw/production/cas/1/current/repo-files/EGI
yum install -y HEP_OSlibs_SL5 ca-policy-lcg ca-policy-egi-core wlcg-repo.noarch wlcg-voms-cms && \
yum clean -y all
ADD update_script.sh /root/update_script.sh
RUN chmod +x /root/update_script.sh && source /root/update_script.sh
RUN groupadd -g 1000 cmsusr && adduser -u 1000 -g 1000 -G root cmsusr && \
echo "cmsusr ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers && \
groupadd -g 1001 cmsinst && adduser -u 1001 -g 1001 cmsinst && \
......
......@@ -11,4 +11,7 @@ else
echo "::: /cvmfs/cms.cern.ch/cmsset_default.sh not found/available"
fi
export LD_LIBRARY_PATH=/root/git-inst/lib:${LD_LIBRARY_PATH}
export PATH=/root/git-inst/bin:${PATH}
exec "$@"
[epel]
name=Extra Packages for Enterprise Linux add-ons
baseurl=http://archives.fedoraproject.org/pub/archive/epel/5/$basearch
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=0
enabled=1
protect=0
[epel-source]
name=Extra Packages for Enterprise Linux add-ons - source RPMs
baseurl=https://archives.fedoraproject.org/pub/archive/epel/5/SRPMS/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
gpgcheck=0
enabled=0
protect=0
yum -y install make
yum -y groupinstall 'Development Tools'
export INSTALL_DIR=${PWD}/git-inst
export GETTEXT_VERSION=gettext-0.20.1
export CURL_VERSION=curl-7.65.0
export OPENSSL_VERSION=openssl-1.1.1g
export M4_VERSION=m4-1.4.18
export AUTOCONF_VERSION=autoconf-2.69
export GIT_VERSION=git-2.21.0
export PERL_VERSION=perl-5.30.2
export LD_LIBRARY_PATH=${INSTALL_DIR}/lib:${LD_LIBRARY_PATH}
export PATH=${INSTALL_DIR}/bin:${PATH}
mkdir ${INSTALL_DIR}
cd ${INSTALL_DIR}
wget http://ftp.gnu.org/pub/gnu/gettext/${GETTEXT_VERSION}.tar.gz
wget ftp://mirrors.gethosted.online/curl-haxx/${CURL_VERSION}.tar.gz
wget http://www.openssl.org/source/${OPENSSL_VERSION}.tar.gz
wget http://mirrors.edge.kernel.org/pub/software/scm/git/${GIT_VERSION}.tar.gz
wget http://ftp.gnu.org/gnu/m4/${M4_VERSION}.tar.gz
wget http://ftp.gnu.org/gnu/autoconf/${AUTOCONF_VERSION}.tar.gz
wget http://www.cpan.org/src/5.0/${PERL_VERSION}.tar.gz
tar xzf ${GETTEXT_VERSION}.tar.gz
cd ${GETTEXT_VERSION}
./configure --prefix=${INSTALL_DIR}
make
make install
cd ..
rm ${GETTEXT_VERSION}.tar.gz
rm -rf ${GETTEXT_VERSION}
tar -xzf ${PERL_VERSION}.tar.gz
cd ${PERL_VERSION}
./Configure -des
make
make install
cd ..
rm ${PERL_VERSION}.tar.gz
rm -rf ${PERL_VERSION}
tar xzf ${OPENSSL_VERSION}.tar.gz
cd ${OPENSSL_VERSION}
CFLAGS=-fPIC ./config --prefix=${INSTALL_DIR} shared zlib
make
make install
cd ..
rm ${OPENSSL_VERSION}.tar.gz
rm -rf ${OPENSSL_VERSION}
tar xzf ${CURL_VERSION}.tar.gz
cd ${CURL_VERSION}
./configure --with-ssl=${INSTALL_DIR} --prefix=${INSTALL_DIR}
make
make install
cd ..
rm ${CURL_VERSION}.tar.gz
rm -rf ${CURL_VERSION}
tar xzf ${M4_VERSION}.tar.gz
cd ${M4_VERSION}
./configure --prefix=${INSTALL_DIR}
make -j16
make install
cd ..
rm ${M4_VERSION}.tar.gz
rm -rf ${M4_VERSION}
tar xzf ${AUTOCONF_VERSION}.tar.gz
cd ${AUTOCONF_VERSION}
./configure --prefix=${INSTALL_DIR}
make -j16
make install
cd ..
rm ${AUTOCONF_VERSION}.tar.gz
rm -rf ${AUTOCONF_VERSION}
tar xzf ${GIT_VERSION}.tar.gz
cd ${GIT_VERSION}
make configure
./configure --prefix=${INSTALL_DIR} --with-openssl=${INSTALL_DIR} --with-curl=${INSTALL_DIR}
make -j16
make install -i
cd ..
rm ${GIT_VERSION}.tar.gz
rm -rf ${GIT_VERSION}
Supports Markdown
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