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:
7
Dockerfile
Normal file
7
Dockerfile
Normal 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
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user