Merge branch '10655-arvbash' closes #10655
[arvados.git] / sdk / dev-jobs.dockerfile
1 # Dockerfile for building an arvados/jobs Docker image from local git tree.
2 #
3 # Intended for use by developers working on arvados-python-client or
4 # arvados-cwl-runner and need to run a crunch job with a custom package
5 # version.
6 #
7 # Use arvados/build/build-dev-docker-jobs-image.sh to build.
8 #
9 # (This dockerfile file must be located in the arvados/sdk/ directory because
10 #  of the docker build root.)
11
12 FROM debian:jessie
13 MAINTAINER Ward Vandewege <ward@curoverse.com>
14
15 ENV DEBIAN_FRONTEND noninteractive
16
17 RUN apt-get update -q && apt-get install -qy git python-pip python-virtualenv python-dev libcurl4-gnutls-dev libgnutls28-dev nodejs
18
19 RUN pip install -U setuptools
20
21 ARG sdk
22 ARG runner
23 ARG cwltool
24
25 ADD python/dist/$sdk /tmp/
26 ADD cwl/cwltool_dist/$cwltool /tmp/
27 ADD cwl/dist/$runner /tmp/
28
29 RUN cd /tmp/arvados-python-client-* && python setup.py install
30 RUN if test -d /tmp/cwltool-* ; then cd /tmp/cwltool-* && python setup.py install ; fi
31 RUN cd /tmp/arvados-cwl-runner-* && python setup.py install
32
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
37
38 USER crunch