1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 ## dont use debian:9 here since the word 'stretch' is used for rvm precompiled binaries
7 MAINTAINER Nico Cesar <nico@curoverse.com>
9 ENV DEBIAN_FRONTEND noninteractive
11 # Install dependencies.
12 RUN /usr/bin/apt-get update && /usr/bin/apt-get install -q -y python2.7-dev python3 python-setuptools python3-setuptools libcurl4-gnutls-dev curl git procps libattr1-dev libfuse-dev libgnutls28-dev libpq-dev python-pip unzip
15 COPY D39DC0E3.asc /tmp
16 RUN gpg --import /tmp/D39DC0E3.asc && \
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 # Install golang binary
24 ADD generated/go1.8.3.linux-amd64.tar.gz /usr/local/
25 RUN ln -s /usr/local/go/bin/go /usr/local/bin/
27 # Install nodejs and npm
28 ADD generated/node-v6.11.2-linux-x64.tar.xz /usr/local/
29 RUN ln -s /usr/local/node-v6.11.2-linux-x64/bin/* /usr/local/bin/
31 # Old versions of setuptools cannot build a schema-salad package.
32 RUN pip install --upgrade setuptools
34 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
36 ENV WORKSPACE /arvados
37 CMD ["/usr/local/rvm/bin/rvm-exec", "default", "bash", "/jenkins/run-build-packages.sh", "--target", "debian9"]