1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: Apache-2.0
5 # Based on Debian Stretch
6 FROM debian:stretch-slim
7 MAINTAINER Ward Vandewege <wvandewege@veritasgenetics.com>
9 ENV DEBIAN_FRONTEND noninteractive
12 RUN apt-get install -yq --no-install-recommends gnupg
15 RUN echo repo_version $repo_version
16 ADD apt.arvados.org-$repo_version.list /etc/apt/sources.list.d/
18 ADD 1078ECD7.key /tmp/
19 RUN cat /tmp/1078ECD7.key | apt-key add -
21 ARG python_sdk_version
22 ARG cwl_runner_version
23 RUN echo cwl_runner_version $cwl_runner_version python_sdk_version $python_sdk_version
26 RUN apt-get install -yq --no-install-recommends nodejs \
27 python-arvados-python-client=$python_sdk_version \
28 python-arvados-cwl-runner=$cwl_runner_version
30 # use the Python executable from the python-arvados-cwl-runner package
31 RUN rm -f /usr/bin/python && ln -s /usr/share/python2.7/dist/python-arvados-cwl-runner/bin/python /usr/bin/python
33 # Install dependencies and set up system.
34 RUN /usr/sbin/adduser --disabled-password \
35 --gecos 'Crunch execution user' crunch && \
36 /usr/bin/install --directory --owner=crunch --group=crunch --mode=0700 /keep /tmp/crunch-src /tmp/crunch-job