Pythonnet Docker images · Issue #322 · pythonnet/pythonnet

@cowboygneox

@denfromufa

@denfromufa

@cowboygneox are you able to both extend and embed pythonnet using these docker images?

@cowboygneox

@denfromufa "extend" and "embed" are ambiguous terms in my scattered brain. I believe that what I've produced is "embedded", since I already installed pythonnet 2.1.0 within the container. Any future pip install pythonnet==2.1.0 and the requirement will be already satisfied.

As for "extend", I'm not sure what you are looking for. Can you elaborate?

@benley

I'm no longer working at the company where I was using pythonnet, so I probably won't be maintaining my Dockerfile variant in the future. Please feel free to fork/extend/take-over from https://github.com/benley/docker-wine-python-dotnet if it's of any use to you!

@denfromufa

@cowboygneox

@denfromufa It is my understanding that Docker does not prevent either. If you can do it with Python's Docker image, then mine is no different.

@cowboygneox

@denfromufa I don't want this to fallout of short-term view. Are you interested in converging this effort somehow?

@denfromufa

@cowboygneox I'm interested in converging the effort, but after v2.2.0 release.

@cowboygneox

@vmuriart

@cowboygneox your latest recipe doesn't need to include the pythonnet source code anymore right?

@cowboygneox

@vmuriart

Yup, I noticed them while browsing 👍. Forewarning, I have limited docker knowledge so bare with me.

What do we need to combine efforts (not sure what you meant by this)?
I think you meant in relation to #240 to combine efforts, or was it to include a sample copy of the docker recipes?

@cowboygneox

@vmuriart I'm suggesting that pythonnet make an official group on Docker Hub and updates various Docker images that have environments all configured and ready to go.

Using Docker has saved me a ton of time in configuring environments, and no matter how hard your team works to make the bridge of Python to .NET easy to install and manage, Docker will always be easier.

I can help if you'd like me to. I'm pretty much already doing it, and it's not a lot of effort to share.

@vmuriart

@cowboygneox thanks for the explanation and offer to help! Docker doesn't play nice with my computer so I don't have much experience with it, so your help is appreciated.

@denfromufa do we already have a docker group account? I don't want to cause another nameclash mess like coverity's.

Looks like the common practice (atleast from the links posted in #240) is to have a separate repo exclusive for the docker images/recipes. I made a repo for this (https://github.com/pythonnet/pythonnet-docker). So next steps would be

@denfromufa

@vmuriart @cowboygneox I created pythonnet account, but cannot convert it to organization. See the error in screenshot below. So I created pythondotnet organization and added you both there:

cloud.docker.com/app/pythondotnet

image

@vmuriart

isn't the account name you created pythonnet? looks like you are putting your own username.

@denfromufa

@vmuriart yes, I created pythonnet, but in order to convert it to organization, I had to create username denfromufa and link it during this step in the screenshot above. For some reason docker cloud thinks that denfromufa is not a valid Docker ID. Anyway use either pythonnet or pythondotnet for now. You are in both accounts. I will try to convert pythonnet to organization tomorrow.

Looking back I should have created denfromufa and then pythonnet organization from within it.

@cowboygneox

@denfromufa Let me know if you get a pythonnet org. I'll get started on the images to send a PR for.

@denfromufa

@cowboygneox

@vmuriart

fixed the group pythonnet and made it an organization. We can use it now instead of pythondotnet

@denfromufa

Can you add all of us to the team?

@denfromufa

@vmuriart

yup account its all setup. only thing left is to figure out why its using my gravatar

@denfromufa

ok after many hiccups my docker installation is working on windows 10!

C:\WINDOWS\system32>docker pull cowboygneox/pythonnet:python3.5-mono4.8.0-pythonnet2.2.2
python3.5-mono4.8.0-pythonnet2.2.2: Pulling from cowboygneox/pythonnet
5040bd298390: Pull complete
fce5728aad85: Pull complete
76610ec20bf5: Pull complete
9c1bc3c30371: Pull complete
e4b99677d005: Pull complete
639fdf1f74a8: Pull complete
17fa6c425d9b: Pull complete
377d339bc856: Pull complete
81f488ccdd45: Pull complete
Digest: sha256:77eea1143b6ca58d995cb3f6ec8675b41af0450f804e266c9cb0f3d3259f34c6
Status: Downloaded newer image for cowboygneox/pythonnet:python3.5-mono4.8.0-pythonnet2.2.2


C:\WINDOWS\system32>docker run -it cowboygneox/pythonnet:python3.5-mono4.8.0-pythonnet2.2.2 sh
# python
Python 3.5.3 (default, Feb 10 2017, 02:09:54)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import clr
>>> clr.__version__
'2.2.2'
>>>

@vmuriart

@denfromufa

@vkhombal

Hello all,
What are the current docker instructions?

@denfromufa