EOX GitLab Instance

Commit d4ac6ec8 authored by Fabian Schindler's avatar Fabian Schindler
Browse files

Improved Dockerfile + RPMs

parent e5e184e5
......@@ -2,12 +2,9 @@ FROM jc21/rpmbuild-centos6
USER root
# for convenience, otherwise they would need to be fetched on every RPM build
RUN yum install -y ant armadillo-devel chrpath curl-devel doxygen fontconfig-devel geos-devel ghostscript "java-devel >= 1:1.6.0" jpackage-utils libgcj libjpeg-devel libpng-devel libtool librx-devel numpy "perl(ExtUtils::MakeMaker)" pkgconfig proj-devel python-devel ruby ruby-devel swig tetex-latex xz-devel zlib-devel
RUN yum install -y bash-completion cfitsio-devel expat-devel freexl-devel g2clib-devel giflib-devel hdf-devel jasper-devel json-c-devel libdap-devel libgeotiff-devel libgta-devel libtiff-devel libtirpc-devel libwebp-devel netcdf-devel ogdi-devel openjpeg2-devel pcre-devel perl-generators poppler-devel python2-numpy sqlite-devel unixODBC-devel xerces-c-devel
ADD prepare_env.sh libtiff4-devel-4.0.3-1.el6.x86_64.rpm libtiff4-4.0.3-1.el6.x86_64.rpm /
# Necessary to use devtoolset-7 for newer GDAL versions
RUN yum install -y centos-release-scl && yum upgrade -y && yum install -y devtoolset-7
RUN chmod +x /prepare_env.sh && /prepare_env.sh
ADD build-spec-devtoolset-7.sh /bin/
RUN chmod +x /bin/build-spec-devtoolset-7.sh
......
#!/bin/sh -e
yum install -y epel-release
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
rpm -Uvh --replacepkgs http://yum.packages.eox.at/el/eox-release-6-2.noarch.rpm
rpm --import /etc/pki/rpm-gpg/eox-package-maintainers.gpg
if ! grep -Fxq "includepkgs=libgeotiff-libtiff4 libgeotiff-libtiff4-devel libxml2 libxml2-python libxml2-devel libxerces-c-3_1" /etc/yum.repos.d/eox.repo ; then
sed -e 's/^\[eox\]$/&\nincludepkgs=libgeotiff-libtiff4 libgeotiff-libtiff4-devel libxml2 libxml2-python libxml2-devel libxerces-c-3_1/' -i /etc/yum.repos.d/eox.repo
fi
if ! grep -Fxq "exclude=libxml2 libxml2-python libxerces-c-3_1" /etc/yum.repos.d/CentOS-Base.repo ; then
sed -e 's/^\[base\]$/&\nexclude=libxml2 libxml2-python libxerces-c-3_1/' -i /etc/yum.repos.d/CentOS-Base.repo
sed -e 's/^\[updates\]$/&\nexclude=libxml2 libxml2-python libxerces-c-3_1/' -i /etc/yum.repos.d/CentOS-Base.repo
fi
if ! grep -Fxq "exclude=openjpeg2" /etc/yum.repos.d/epel.repo ; then
sed -e 's/^\[epel\]$/&\nexclude=openjpeg2/' -i /etc/yum.repos.d/epel.repo
fi
# Re-install libxml2 from eox repository
rpm -e --justdb --nodeps libxml2
# Install packages
yum install -y libxml2
yum install -y /libtiff4-4.0.3-1.el6.x86_64.rpm /libtiff4-devel-4.0.3-1.el6.x86_64.rpm
yum install -y ant \
armadillo-devel \
chrpath curl-devel \
doxygen \
fontconfig-devel \
geos-devel \
ghostscript \
"java-devel >= 1:1.6.0" \
jpackage-utils \
libgcj \
libjpeg-devel \
libpng-devel \
libtool \
librx-devel \
numpy \
"perl(ExtUtils::MakeMaker)" \
pkgconfig \
proj-devel \
python-devel \
ruby \
ruby-devel \
swig \
tetex-latex \
xz-devel \
zlib-devel \
bash-completion \
cfitsio-devel \
expat-devel \
freexl-devel \
g2clib-devel \
giflib-devel \
hdf-devel \
jasper-devel \
json-c-devel \
libdap-devel \
libgta-devel \
libtiff4-devel \
libtirpc-devel \
libwebp-devel \
netcdf-devel \
ogdi-devel \
pcre-devel \
perl-generators \
poppler-devel \
numpy \
sqlite-devel \
unixODBC-devel \
xerces-c-devel \
libgeotiff-libtiff4-devel
# openjpeg2-devel \
# Necessary to use devtoolset-7 for newer GDAL versions
yum install -y centos-release-scl
yum upgrade -y
yum install -y devtoolset-7 python2-rpm-macros
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