From 7526c7f6beaa7b8d6d392016a3d6dd9386736c1f Mon Sep 17 00:00:00 2001 From: Zach Teisberg Date: Tue, 14 Nov 2017 14:14:53 -0600 Subject: [PATCH 1/2] Update mono repo location --- Dockerfile-python2.7-mono4.8.0-pythonnet2.3.0 | 2 +- Dockerfile-python3.5-mono4.8.0-pythonnet2.3.0 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile-python2.7-mono4.8.0-pythonnet2.3.0 b/Dockerfile-python2.7-mono4.8.0-pythonnet2.3.0 index ce06541..84b5fb2 100644 --- a/Dockerfile-python2.7-mono4.8.0-pythonnet2.3.0 +++ b/Dockerfile-python2.7-mono4.8.0-pythonnet2.3.0 @@ -4,7 +4,7 @@ RUN apt-get update \ && apt-get install -y curl \ && rm -rf /var/lib/apt/lists/* \ && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb http://download.mono-project.com/repo/debian wheezy main" >> /etc/apt/sources.list.d/mono-xamarin.list \ + && echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots/4.8.0.520/. main" >> /etc/apt/sources.list.d/mono-xamarin.list \ && echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" >> /etc/apt/sources.list.d/mono-xamarin.list \ && echo "deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main" >> /etc/apt/sources.list.d/mono-xamarin.list \ && apt-get update \ diff --git a/Dockerfile-python3.5-mono4.8.0-pythonnet2.3.0 b/Dockerfile-python3.5-mono4.8.0-pythonnet2.3.0 index 9d1779f..82b592a 100644 --- a/Dockerfile-python3.5-mono4.8.0-pythonnet2.3.0 +++ b/Dockerfile-python3.5-mono4.8.0-pythonnet2.3.0 @@ -4,7 +4,7 @@ RUN apt-get update \ && apt-get install -y curl \ && rm -rf /var/lib/apt/lists/* \ && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ - && echo "deb http://download.mono-project.com/repo/debian wheezy main" >> /etc/apt/sources.list.d/mono-xamarin.list \ + && echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots/4.8.0.520/. main" >> /etc/apt/sources.list.d/mono-xamarin.list \ && echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" >> /etc/apt/sources.list.d/mono-xamarin.list \ && echo "deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main" >> /etc/apt/sources.list.d/mono-xamarin.list \ && apt-get update \ From d1026c15f6a997246bf59a43a99169f8659f6650 Mon Sep 17 00:00:00 2001 From: Zach Teisberg Date: Tue, 14 Nov 2017 14:15:06 -0600 Subject: [PATCH 2/2] add python 3.6 image --- Dockerfile-python3.6-mono4.8.0-pythonnet2.3.0 | 15 +++++++++++++++ build_and_deploy.sh | 2 ++ 2 files changed, 17 insertions(+) create mode 100644 Dockerfile-python3.6-mono4.8.0-pythonnet2.3.0 diff --git a/Dockerfile-python3.6-mono4.8.0-pythonnet2.3.0 b/Dockerfile-python3.6-mono4.8.0-pythonnet2.3.0 new file mode 100644 index 0000000..63f79f8 --- /dev/null +++ b/Dockerfile-python3.6-mono4.8.0-pythonnet2.3.0 @@ -0,0 +1,15 @@ +FROM python:3.6 + +RUN apt-get update \ + && apt-get install -y curl \ + && rm -rf /var/lib/apt/lists/* \ + && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ + && echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots/4.8.0.520/. main" >> /etc/apt/sources.list.d/mono-xamarin.list \ + && echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" >> /etc/apt/sources.list.d/mono-xamarin.list \ + && echo "deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main" >> /etc/apt/sources.list.d/mono-xamarin.list \ + && apt-get update \ + && apt-get install -y clang \ + && apt-get install -y mono-complete=4.8.0.520-0xamarin3 \ + && rm -rf /var/lib/apt/lists/* /tmp/* + +RUN pip install pycparser==2.17 && pip install pythonnet==2.3.0 diff --git a/build_and_deploy.sh b/build_and_deploy.sh index 370595b..e84d3d5 100755 --- a/build_and_deploy.sh +++ b/build_and_deploy.sh @@ -4,6 +4,8 @@ set -e docker build -t pythonnet/pythonnet:python2.7-mono4.8.0-pythonnet2.3.0 -f Dockerfile-python2.7-mono4.8.0-pythonnet2.3.0 . docker build -t pythonnet/pythonnet:python3.5-mono4.8.0-pythonnet2.3.0 -f Dockerfile-python3.5-mono4.8.0-pythonnet2.3.0 . +docker build -t pythonnet/pythonnet:python3.6-mono4.8.0-pythonnet2.3.0 -f Dockerfile-python3.6-mono4.8.0-pythonnet2.3.0 . docker push pythonnet/pythonnet:python2.7-mono4.8.0-pythonnet2.3.0 docker push pythonnet/pythonnet:python3.5-mono4.8.0-pythonnet2.3.0 +docker push pythonnet/pythonnet:python3.6-mono4.8.0-pythonnet2.3.0