1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
6 MAINTAINER Ward Vandewege <ward@curoverse.com>
8 # Install dependencies.
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
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.3 && \
15 /usr/local/rvm/bin/rvm alias create default ruby-2.3 && \
16 /usr/local/rvm/bin/rvm-exec default gem install bundler && \
17 /usr/local/rvm/bin/rvm-exec default gem install fpm --version 1.10.2
19 # Install golang binary
20 ADD generated/go1.10.1.linux-amd64.tar.gz /usr/local/
21 RUN ln -s /usr/local/go/bin/go /usr/local/bin/
23 # Install nodejs and npm
24 ADD generated/node-v6.11.2-linux-x64.tar.xz /usr/local/
25 RUN ln -s /usr/local/node-v6.11.2-linux-x64/bin/* /usr/local/bin/
27 # Need to "touch" RPM database to workaround bug in interaction between
28 # overlayfs and yum (https://bugzilla.redhat.com/show_bug.cgi?id=1213602)
29 RUN touch /var/lib/rpm/* && yum -q -y install python33
30 RUN scl enable python33 "easy_install-3.3 pip" && easy_install-2.7 pip
32 # Old versions of setuptools cannot build a schema-salad package.
33 RUN pip install --upgrade setuptools
35 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
37 ENV WORKSPACE /arvados
38 CMD ["scl", "enable", "python33", "/usr/local/rvm/bin/rvm-exec default bash /jenkins/run-build-packages.sh --target centos7"]