From 8ba1b5fc35ce0d023fa68d8e9c693f5dbcf7c9c3 Mon Sep 17 00:00:00 2001 From: Eli Uriegas Date: Tue, 28 Mar 2017 22:33:55 -0500 Subject: [PATCH] Add docker support for local unit testing Addresses consistency across different OS's by making it very similar to the base Travis image. --- Dockerfile | 6 ++++++ Makefile | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 Dockerfile create mode 100644 Makefile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..ee8ca2be --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM python:3.6 + +ADD . /app +WORKDIR /app + +RUN pip install tox diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..ad64412f --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +test: + find . -name "*.pyc" -delete + docker build -t sanic/test-image . + docker run -t sanic/test-image tox