1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
6 MAINTAINER Ward Vandewege <ward@curoverse.com>
8 ENV DEBIAN_FRONTEND noninteractive
10 # Install dependencies.
11 RUN /usr/bin/apt-get update && /usr/bin/apt-get install -q -y python2.7-dev python3 python-setuptools python3-setuptools libcurl4-gnutls-dev libgnutls-dev curl git libattr1-dev libfuse-dev libpq-dev python-pip unzip tzdata
14 RUN gpg --keyserver pool.sks-keyservers.net --recv-keys D39DC0E3 && \
15 curl -L https://get.rvm.io | bash -s stable && \
16 /usr/local/rvm/bin/rvm install 2.3 && \
17 /usr/local/rvm/bin/rvm alias create default ruby-2.3 && \
18 /usr/local/rvm/bin/rvm-exec default gem install bundler && \
19 /usr/local/rvm/bin/rvm-exec default gem install cure-fpm --version 1.6.0b
21 # Install golang binary
22 ADD generated/go1.8.3.linux-amd64.tar.gz /usr/local/
23 RUN ln -s /usr/local/go/bin/go /usr/local/bin/
25 # Install nodejs and npm
26 ADD generated/node-v6.11.2-linux-x64.tar.xz /usr/local/
27 RUN ln -s /usr/local/node-v6.11.2-linux-x64/bin/* /usr/local/bin/
29 # Old versions of setuptools cannot build a schema-salad package.
30 RUN pip install --upgrade setuptools
32 ENV WORKSPACE /arvados
33 CMD ["/usr/local/rvm/bin/rvm-exec", "default", "bash", "/jenkins/run-build-packages.sh", "--target", "ubuntu1604"]