In the arvados/jobs image, use the Python executable from the
[arvados.git] / docker / jobs / Dockerfile
index 9b1be1e74df9e36501ed0bd8def2d70cd7e1bfea..c0fe145db1b292ebc55c536b9d0e7786a7b06daa 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: Apache-2.0
+
 # Based on Debian Jessie
 FROM debian:jessie
 MAINTAINER Ward Vandewege <ward@curoverse.com>
@@ -19,6 +23,9 @@ RUN apt-get install -yq --no-install-recommends \
     python-arvados-python-client=$python_sdk_version \
     python-arvados-cwl-runner=$cwl_runner_version
 
+# use the Python executable from the python-arvados-python-client package
+RUN rm -f /usr/bin/python && ln -s /usr/share/python2.7/dist/python-arvados-python-client/bin/python /usr/bin/python
+
 # Install dependencies and set up system.
 RUN /usr/sbin/adduser --disabled-password \
       --gecos 'Crunch execution user' crunch && \