diff --git a/python/app/Dockerfile b/python/app/Dockerfile new file mode 100644 index 0000000..1e08195 --- /dev/null +++ b/python/app/Dockerfile @@ -0,0 +1,6 @@ +FROM python:2.7 + +RUN pip install pytest +COPY . /root/ +WORKDIR /root/t +CMD [ "pytest" ] diff --git a/python/app/dockertest.sh b/python/app/dockertest.sh new file mode 100755 index 0000000..25bd07e --- /dev/null +++ b/python/app/dockertest.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +docker build . -t app +docker run --rm --name app -t app + diff --git a/python/app/t/test_01-convert.py b/python/app/t/test_01-convert.py index 485680b..321b25b 100644 --- a/python/app/t/test_01-convert.py +++ b/python/app/t/test_01-convert.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python + import unittest import sys