X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/964ab3dd90ff1508efc0c77378cde2b3a4da1029..dd969e81dfbe0ff1b60c85841aaf01e51b45c574:/docker/jobs/Dockerfile diff --git a/docker/jobs/Dockerfile b/docker/jobs/Dockerfile index 313dd3662a..02a1c3829d 100644 --- a/docker/jobs/Dockerfile +++ b/docker/jobs/Dockerfile @@ -1,20 +1,38 @@ -FROM arvados/base -MAINTAINER Brett Smith +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + +# Based on Debian Stretch +FROM debian:stretch +MAINTAINER Ward Vandewege + +ENV DEBIAN_FRONTEND noninteractive + +RUN apt-get update -q +RUN apt-get install -yq --no-install-recommends gnupg + +ARG repo_version +RUN echo repo_version $repo_version +ADD apt.arvados.org-$repo_version.list /etc/apt/sources.list.d/ + +ADD 1078ECD7.key /tmp/ +RUN cat /tmp/1078ECD7.key | apt-key add - + +ARG python_sdk_version +ARG cwl_runner_version +RUN echo cwl_runner_version $cwl_runner_version python_sdk_version $python_sdk_version + +RUN apt-get update -q +RUN apt-get install -yq --no-install-recommends nodejs \ + python-arvados-python-client=$python_sdk_version \ + python-arvados-cwl-runner=$cwl_runner_version + +# use the Python executable from the python-arvados-cwl-runner package +RUN rm -f /usr/bin/python && ln -s /usr/share/python2.7/dist/python-arvados-cwl-runner/bin/python /usr/bin/python # Install dependencies and set up system. -# The FUSE packages help ensure that we can install the Python SDK (arv-mount). -RUN /usr/bin/apt-get install -q -y \ - python-dev python-llfuse python-pip python-virtualenv \ - libio-socket-ssl-perl libjson-perl liburi-perl libwww-perl dtrx \ - fuse libattr1-dev libfuse-dev && \ - /usr/sbin/adduser --disabled-password \ +RUN /usr/sbin/adduser --disabled-password \ --gecos 'Crunch execution user' crunch && \ - /usr/bin/install --directory --owner=crunch --group=crunch --mode=0700 /keep /tmp/crunch-src /tmp/crunch-job && \ - /bin/ln -s /usr/src/arvados /usr/local/src/arvados - -# Install Arvados packages. -RUN (find /usr/src/arvados/sdk -name '*.gem' -print0 | \ - xargs -0rn 1 /usr/local/rvm/bin/rvm-exec default gem install) && \ - apt-get -qqy install python-arvados-fuse + /usr/bin/install --directory --owner=crunch --group=crunch --mode=0700 /keep /tmp/crunch-src /tmp/crunch-job USER crunch