1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
6 MAINTAINER Brett Smith <brett@curoverse.com>
8 # Install build dependencies provided in base distribution
9 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
11 # Install golang binary
12 ADD generated/go1.8.3.linux-amd64.tar.gz /usr/local/
13 RUN ln -s /usr/local/go/bin/go /usr/local/bin/
16 RUN gpg --keyserver pool.sks-keyservers.net --recv-keys D39DC0E3 && \
17 curl -L https://get.rvm.io | bash -s stable && \
18 /usr/local/rvm/bin/rvm install 2.3 && \
19 /usr/local/rvm/bin/rvm alias create default ruby-2.3 && \
20 /usr/local/rvm/bin/rvm-exec default gem install bundler && \
21 /usr/local/rvm/bin/rvm-exec default gem install cure-fpm --version 1.6.0b
23 # Need to "touch" RPM database to workaround bug in interaction between
24 # overlayfs and yum (https://bugzilla.redhat.com/show_bug.cgi?id=1213602)
25 RUN touch /var/lib/rpm/* && yum -q -y install python33
26 RUN scl enable python33 "easy_install-3.3 pip" && easy_install-2.7 pip
28 ENV WORKSPACE /arvados
29 CMD ["scl", "enable", "python33", "/usr/local/rvm/bin/rvm-exec default bash /jenkins/run-build-packages.sh --target centos7"]