aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2019-10-18 02:37:59 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2019-10-18 02:37:59 +0200
commit584ac7d2f2e916ecb5393923f4d31334ae98870d (patch)
treecb0817e73aceddc928eb856afa81d438c9bfc8e1
parent7bbbde9ca14a0399ef3b8faffbc07fb1d3f6e67c (diff)
downloadipaddress-584ac7d2f2e916ecb5393923f4d31334ae98870d.tar.gz
Add a dockerfile to test building on Python2.6
These days, I don't have 2.6 installed on my machine anymore, so use a docker image to test that.
-rw-r--r--.dockerignore3
-rw-r--r--Dockerfile.python2.68
2 files changed, 11 insertions, 0 deletions
diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..c778784
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,3 @@
+build
+dist
+ipaddress.egg-info
diff --git a/Dockerfile.python2.6 b/Dockerfile.python2.6
new file mode 100644
index 0000000..1c11f9f
--- /dev/null
+++ b/Dockerfile.python2.6
@@ -0,0 +1,8 @@
+FROM lovato/python-2.6.6
+# Dockerfile to run tests under python2.6
+
+# docker build -t ipaddress-python2.6 . -f Dockerfile.python2.6
+
+ADD . .
+RUN python test_ipaddress.py
+CMD python test_ipaddress.py