1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 ## dont use debian:10 here since the word 'buster' is used for rvm precompiled binaries
7 MAINTAINER Ward Vandewege <wvandewege@veritasgenetics.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 python3-pip libcurl4-gnutls-dev curl git procps libattr1-dev libfuse-dev libgnutls28-dev libpq-dev python-pip unzip python3-venv python3-dev libpam-dev
15 RUN /usr/bin/pip install 'virtualenv<20'
18 ADD generated/mpapis.asc /tmp/
19 ADD generated/pkuczynski.asc /tmp/
20 RUN gpg --import --no-tty /tmp/mpapis.asc && \
21 gpg --import --no-tty /tmp/pkuczynski.asc && \
22 curl -L https://get.rvm.io | bash -s stable && \
23 /usr/local/rvm/bin/rvm install 2.5 && \
24 /usr/local/rvm/bin/rvm alias create default ruby-2.5 && \
25 /usr/local/rvm/bin/rvm-exec default gem install bundler --version 2.0.2 && \
26 /usr/local/rvm/bin/rvm-exec default gem install fpm --version 1.10.2
28 # Install golang binary
29 ADD generated/go1.13.4.linux-amd64.tar.gz /usr/local/
30 RUN ln -s /usr/local/go/bin/go /usr/local/bin/
32 # Install nodejs and npm
33 ADD generated/node-v6.11.2-linux-x64.tar.xz /usr/local/
34 RUN ln -s /usr/local/node-v6.11.2-linux-x64/bin/* /usr/local/bin/
36 RUN git clone --depth 1 git://git.arvados.org/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
38 ENV WORKSPACE /arvados
39 CMD ["/usr/local/rvm/bin/rvm-exec", "default", "bash", "/jenkins/run-build-packages.sh", "--target", "debian10"]