1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: Apache-2.0
6 FROM debian:buster-slim
7 MAINTAINER Arvados Package Maintainers <packaging@arvados.org>
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 python3-arvados-cwl-runner=$cwl_runner_version
28 # use the Python executable from the python-arvados-cwl-runner package
29 RUN rm -f /usr/bin/python && ln -s /usr/share/python3/dist/python3-arvados-cwl-runner/bin/python /usr/bin/python
30 RUN rm -f /usr/bin/python3 && ln -s /usr/share/python3/dist/python3-arvados-cwl-runner/bin/python /usr/bin/python3
32 # Install dependencies and set up system.
33 RUN /usr/sbin/adduser --disabled-password \
34 --gecos 'Crunch execution user' crunch && \
35 /usr/bin/install --directory --owner=crunch --group=crunch --mode=0700 /keep /tmp/crunch-src /tmp/crunch-job