Skip to content
This repository was archived by the owner on Jun 9, 2020. It is now read-only.

Commit 38390bb

Browse files
author
Sean Freitag
committed
Initial commit.
1 parent d49820a commit 38390bb

File tree

4 files changed

+51
-1
lines changed

4 files changed

+51
-1
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM python:2.7
2+
3+
RUN apt-get update \
4+
&& apt-get install -y curl \
5+
&& rm -rf /var/lib/apt/lists/* \
6+
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \
7+
&& echo "deb http://download.mono-project.com/repo/debian wheezy main" >> /etc/apt/sources.list.d/mono-xamarin.list \
8+
&& echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" >> /etc/apt/sources.list.d/mono-xamarin.list \
9+
&& echo "deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main" >> /etc/apt/sources.list.d/mono-xamarin.list \
10+
&& apt-get update \
11+
&& apt-get install -y mono-complete=4.8.0.495-0xamarin1 \
12+
&& rm -rf /var/lib/apt/lists/* /tmp/*
13+
14+
RUN pip install pythonnet==2.2.2
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM python:3.5
2+
3+
RUN apt-get update \
4+
&& apt-get install -y curl \
5+
&& rm -rf /var/lib/apt/lists/* \
6+
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \
7+
&& echo "deb http://download.mono-project.com/repo/debian wheezy main" >> /etc/apt/sources.list.d/mono-xamarin.list \
8+
&& echo "deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main" >> /etc/apt/sources.list.d/mono-xamarin.list \
9+
&& echo "deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main" >> /etc/apt/sources.list.d/mono-xamarin.list \
10+
&& apt-get update \
11+
&& apt-get install -y clang \
12+
&& apt-get install -y mono-complete=4.8.0.495-0xamarin1 \
13+
&& rm -rf /var/lib/apt/lists/* /tmp/*
14+
15+
RUN pip install pycparser==2.17 && pip install pythonnet==2.2.2

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1-
# pythonnet-docker
1+
# Dockerfiles for Pythonnet
2+
3+
*Just add python sources and enjoy!*
4+
5+
[https://hub.docker.com/r/pythondotnet/pythonnet/](https://hub.docker.com/r/pythondotnet/pythonnet/)
6+
7+
## Current Support
8+
9+
- Python 2.7 & 3.5
10+
- Mono 4.8.0
11+
- Pythonnet 2.2.0
12+
13+
*Note: The dockerfiles are named with their respective combinations.*

build_and_deploy.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
docker build -t pythondotnet/pythonnet:python2.7-mono4.8.0-pythonnet2.2.2 -f Dockerfile-python2.7-mono4.8.0-pythonnet2.2.2 .
6+
docker build -t pythondotnet/pythonnet:python3.5-mono4.8.0-pythonnet2.2.2 -f Dockerfile-python3.5-mono4.8.0-pythonnet2.2.2 .
7+
8+
docker push pythondotnet/pythonnet:python2.7-mono4.8.0-pythonnet2.2.2
9+
docker push pythondotnet/pythonnet:python3.5-mono4.8.0-pythonnet2.2.2

0 commit comments

Comments
 (0)