github.com/apptainer/singularity@v3.1.1+incompatible/examples/legacy/2.2/contrib/debian85-tensorflow-0.10.def (about)

     1  # Copyright (c) 2015-2017, Gregory M. Kurtzer. All rights reserved.
     2  # 
     3  # "Singularity" Copyright (c) 2016, The Regents of the University of California,
     4  # through Lawrence Berkeley National Laboratory (subject to receipt of any
     5  # required approvals from the U.S. Dept. of Energy).  All rights reserved.
     6  
     7  # SINGULARITY BOOTSTRAP: TENSORFLOW
     8  # Installation proceedure copied from:
     9  # https://www.tensorflow.org/versions/r0.10/get_started/os_setup.html#pip-installation
    10  
    11  
    12  BootStrap: debootstrap
    13  OSVersion: stable
    14  MirrorURL: http://ftp.us.debian.org/debian/
    15  
    16  
    17  %runscript
    18      exec /usr/bin/python
    19  
    20  
    21  %post
    22      apt-get update
    23      apt-get -y install vim python-pip python-dev
    24      apt-get clean
    25      pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.10.0-cp27-none-linux_x86_64.whl
    26  
    27  
    28  %test
    29      # This runs usually less then 30 minutes depending on your host type
    30      python -m tensorflow.models.image.mnist.convolutional