Docker
======

.. image:: https://img.shields.io/docker/pulls/uofteis/pyvss.svg
    :target: https://hub.docker.com/r/uofteis/pyvss/

Docker image based on the official Python image on `Alpine Linux <https://hub.docker.com/_/alpine/>`_
and `PyVSS <https://pypi.python.org/pypi/pyvss>`_ in its latest version.

- Python 2.7 Alpine `uofteis/pyvss:py27 <https://hub.docker.com/r/uofteis/pyvss/>`_
- Python 3.5 Alpine `uofteis/pyvss:py35 <https://hub.docker.com/r/uofteis/pyvss/>`_
- Python 3.6 Alpine `uofteis/pyvss:py36 <https://hub.docker.com/r/uofteis/pyvss/>`_

.. code-block:: bash

    # with access token and python 3.5
    docker run -it -v `pwd`:/data -e VSS_API_TOKEN=token_here uofteis/pyvss:py35

    # user and pass and python 2.7
    docker run -it -v `pwd`:/data -e VSS_API_USER=user_here -e VSS_API_USER_PASS=user_pass_here uofteis/pyvss:py27

    # env file containing either VSS_API_USER and VSS_API_USER_PASS or VSS_API_TOKEN
    docker run -it -v `pwd`:/data --env-file vss.env uofteis/pyvss:py36