DCOS-203 Add docker support for running tox

Tested this locally by creating the docker image in the Dockerfile and
running the command detailed in the README.rst
This commit is contained in:
José Armando García Sancio
2015-01-20 21:20:32 +00:00
parent 1f1345718d
commit 7bc7a9016b
2 changed files with 13 additions and 0 deletions

7
Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
# Configure a Debian testing distro to run Tox for Python 2.7 and 3.4
FROM debian:testing
MAINTAINER José Armando García Sancio <jose@mesosphere.io>
RUN apt-get update && \
apt-get install -y python2.7 python3.4 python-pip && \
apt-get clean
RUN pip install tox

View File

@@ -65,6 +65,12 @@ Running Tests:
> tox
#. Run tests using tox through docker::
> CHECKOUT=<path-to-repo> \
export DOCKER_REPO=mesosphere/python-tox \
export DOCKER_TAG=v1 \
sudo docker run -it -v $(CHECKOUT):/dcos-cli $(DOCKER_REPO):$(DOCKER_TAG) tox -c /dcos-cli/tox.ini
Notes
-----
Submodule writing notes gathered so far: