1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: Apache-2.0
5 # Dockerfile for building an arvados/jobs Docker image from local git tree.
7 # Intended for use by developers working on arvados-python-client or
8 # arvados-cwl-runner and need to run a crunch job with a custom package
11 # Use arvados/build/build-dev-docker-jobs-image.sh to build.
13 # (This dockerfile file must be located in the arvados/sdk/ directory because
14 # of the docker build root.)
17 MAINTAINER Ward Vandewege <ward@curoverse.com>
19 ENV DEBIAN_FRONTEND noninteractive
23 RUN apt-get update -q && apt-get install -qy git ${pythoncmd}-pip python-virtualenv ${pythoncmd}-dev libcurl4-gnutls-dev libgnutls28-dev nodejs python-pyasn1-modules
24 RUN if [ "$pythoncmd" = "python3" ]; then pip3 install -U setuptools six requests; else pip install -U setuptools six requests; fi
31 ADD python/dist/$sdk /tmp/
32 ADD cwl/salad_dist/$salad /tmp/
33 ADD cwl/cwltool_dist/$cwltool /tmp/
34 ADD cwl/dist/$runner /tmp/
36 RUN cd /tmp/arvados-python-client-* && $pythoncmd setup.py install
37 RUN if test -d /tmp/schema-salad-* ; then cd /tmp/schema-salad-* && $pythoncmd setup.py install ; fi
38 RUN if test -d /tmp/cwltool-* ; then cd /tmp/cwltool-* && $pythoncmd setup.py install ; fi
39 RUN cd /tmp/arvados-cwl-runner-* && $pythoncmd setup.py install
41 # Install dependencies and set up system.
42 RUN /usr/sbin/adduser --disabled-password \
43 --gecos 'Crunch execution user' crunch && \
44 /usr/bin/install --directory --owner=crunch --group=crunch --mode=0700 /keep /tmp/crunch-src /tmp/crunch-job