X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/10dc1ca759592b7281265ac1378bda126c979208..c8c75cbc7afec458427a1b4384eda9d3b62a8014:/build/package-build-dockerfiles/centos7/Dockerfile diff --git a/build/package-build-dockerfiles/centos7/Dockerfile b/build/package-build-dockerfiles/centos7/Dockerfile index 216c5cbbad..01729c9bff 100644 --- a/build/package-build-dockerfiles/centos7/Dockerfile +++ b/build/package-build-dockerfiles/centos7/Dockerfile @@ -6,10 +6,13 @@ FROM centos:7 MAINTAINER Ward Vandewege # Install dependencies. -RUN yum -q -y install make automake gcc gcc-c++ libyaml-devel patch readline-devel zlib-devel libffi-devel openssl-devel bzip2 libtool bison sqlite-devel rpm-build git perl-ExtUtils-MakeMaker libattr-devel nss-devel libcurl-devel which tar unzip scl-utils centos-release-scl postgresql-devel python-devel python-setuptools fuse-devel xz-libs git +RUN yum -q -y install make automake gcc gcc-c++ libyaml-devel patch readline-devel zlib-devel libffi-devel openssl-devel bzip2 libtool bison sqlite-devel rpm-build git perl-ExtUtils-MakeMaker libattr-devel nss-devel libcurl-devel which tar unzip scl-utils centos-release-scl postgresql-devel python-devel python-setuptools fuse-devel xz-libs git python-virtualenv wget # Install RVM -RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys D39DC0E3 && \ +ADD generated/mpapis.asc /tmp/ +ADD generated/pkuczynski.asc /tmp/ +RUN gpg --import --no-tty /tmp/mpapis.asc && \ + gpg --import --no-tty /tmp/pkuczynski.asc && \ curl -L https://get.rvm.io | bash -s stable && \ /usr/local/rvm/bin/rvm install 2.3 && \ /usr/local/rvm/bin/rvm alias create default ruby-2.3 && \ @@ -26,13 +29,17 @@ RUN ln -s /usr/local/node-v6.11.2-linux-x64/bin/* /usr/local/bin/ # Need to "touch" RPM database to workaround bug in interaction between # overlayfs and yum (https://bugzilla.redhat.com/show_bug.cgi?id=1213602) -RUN touch /var/lib/rpm/* && yum -q -y install python33 -RUN scl enable python33 "easy_install-3.3 pip" && easy_install-2.7 pip +RUN touch /var/lib/rpm/* && yum -q -y install rh-python36 +RUN scl enable rh-python36 "easy_install-3.6 pip" && easy_install-2.7 pip -# Old versions of setuptools cannot build a schema-salad package. -RUN pip install --upgrade setuptools +# Add epel, we need it for the python-pam dependency +RUN wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm +RUN rpm -ivh epel-release-latest-7.noarch.rpm RUN git clone --depth 1 git://git.curoverse.com/arvados.git /tmp/arvados && cd /tmp/arvados/services/api && /usr/local/rvm/bin/rvm-exec default bundle && cd /tmp/arvados/apps/workbench && /usr/local/rvm/bin/rvm-exec default bundle && rm -rf /tmp/arvados +# The version of setuptools that comes with CentOS is way too old +RUN pip install --upgrade setuptools + ENV WORKSPACE /arvados -CMD ["scl", "enable", "python33", "/usr/local/rvm/bin/rvm-exec default bash /jenkins/run-build-packages.sh --target centos7"] +CMD ["scl", "enable", "rh-python36", "/usr/local/rvm/bin/rvm-exec default bash /jenkins/run-build-packages.sh --target centos7"]