1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
6 MAINTAINER Arvados Package Maintainers <packaging@arvados.org>
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 python3-pip libcurl4-gnutls-dev libgnutls-dev curl git libattr1-dev libfuse-dev libpq-dev python-pip unzip tzdata python3-venv python3-dev
14 RUN /usr/bin/pip install 'virtualenv<20'
17 ADD generated/mpapis.asc /tmp/
18 ADD generated/pkuczynski.asc /tmp/
19 RUN gpg --import --no-tty /tmp/mpapis.asc && \
20 gpg --import --no-tty /tmp/pkuczynski.asc && \
21 curl -L https://get.rvm.io | bash -s stable && \
22 /usr/local/rvm/bin/rvm install 2.5 && \
23 /usr/local/rvm/bin/rvm alias create default ruby-2.5 && \
24 /usr/local/rvm/bin/rvm-exec default gem install bundler --version 2.0.2 && \
25 /usr/local/rvm/bin/rvm-exec default gem install fpm --version 1.10.2
27 # Install golang binary
28 ADD generated/go1.13.4.linux-amd64.tar.gz /usr/local/
29 RUN ln -s /usr/local/go/bin/go /usr/local/bin/
31 # Install nodejs and npm
32 ADD generated/node-v6.11.2-linux-x64.tar.xz /usr/local/
33 RUN ln -s /usr/local/node-v6.11.2-linux-x64/bin/* /usr/local/bin/
35 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
37 ENV WORKSPACE /arvados
38 CMD ["/usr/local/rvm/bin/rvm-exec", "default", "bash", "/jenkins/run-build-packages.sh", "--target", "ubuntu1604"]