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