2017-11-10 10:45:15 -07:00
|
|
|
FROM centos:7
|
|
|
|
ENV VERSION 17.1.1
|
2018-03-16 09:17:16 -06:00
|
|
|
ENV RELEASE 6
|
2017-11-10 10:45:15 -07:00
|
|
|
MAINTAINER Michael James <mjames@ucar.edu>
|
|
|
|
|
|
|
|
USER root
|
|
|
|
|
2018-03-16 09:17:16 -06:00
|
|
|
RUN yum update yum -y
|
2017-11-10 10:45:15 -07:00
|
|
|
|
|
|
|
RUN groupadd fxalpha && useradd -G fxalpha awips
|
|
|
|
|
|
|
|
RUN yum groupinstall "Development tools" -y
|
|
|
|
RUN yum install epel-release -y
|
|
|
|
RUN yum clean all -y
|
|
|
|
|
2017-11-15 16:56:01 -07:00
|
|
|
ENV systemDeps="wget rsync git net-tools"
|
2017-11-10 10:45:15 -07:00
|
|
|
ENV rpmDeps="gcc gcc-c++ rpm-build readline-devel createrepo"
|
|
|
|
ENV qpidDeps="boost-devel cmake make ruby libuuid-devel"
|
2018-06-07 15:53:59 -06:00
|
|
|
ENV pythonDeps="tk-devel tcl-devel atlas-devel compat-libf2c-34 libgfortran geos-devel libpng-devel freetype"
|
2017-11-10 10:45:15 -07:00
|
|
|
ENV awipsDeps="netcdf netcdf-devel hdf5-devel lzo-devel bzip2-devel qt-devel"
|
|
|
|
ENV httpDeps="autoconf findutils libselinux-devel libxml2-devel lua-devel openldap-devel openssl-devel pcre-devel pkgconfig perl zlib-devel apr-util-devel apr-devel"
|
|
|
|
|
|
|
|
RUN yum install $systemDeps $rpmDeps $qpidDeps $pythonDeps $awipsDeps $httpDeps -y
|
|
|
|
|
2017-12-21 09:32:35 -07:00
|
|
|
RUN wget -O /etc/yum.repos.d/awips2.repo https://www.unidata.ucar.edu/software/awips2/doc/el7-dev.repo
|
2017-11-10 10:45:15 -07:00
|
|
|
RUN yum -y clean all
|
|
|
|
RUN yum groupinstall awips2-ade -y
|
|
|
|
|
|
|
|
RUN mkdir -p /awips2/jenkins/buildspace/workspace/AWIPS2-UPC_build/baseline && mkdir -p /awips2/jenkins/buildspace/workspace/tmp
|
|
|
|
RUN mkdir -p /awips2/jenkins/build/rpms/awips2_${VERSION}/{x86_64,noarch}/
|
|
|
|
RUN chown -R awips:fxalpha /awips2/jenkins/
|
|
|
|
|
|
|
|
ENTRYPOINT ["/bin/bash"]
|