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-pip libcurl4-gnutls-dev libgnutls28-dev curl git libattr1-dev libfuse-dev libpq-dev python-pip unzip tzdata
14 RUN gpg --keyserver ha.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 fpm --version 1.10.2
21 # Install golang binary
22 ADD generated/go1.10.1.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 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
34 ENV WORKSPACE /arvados
35 CMD ["/usr/local/rvm/bin/rvm-exec", "default", "bash", "/jenkins/run-build-packages.sh", "--target", "ubuntu1804"]