Skip to content

Pythonnet Docker images #322

Description

@cowboygneox

Hey guys,

For my Docker infrastructure, I threw together a couple of Docker images that will make it way easier to develop, test, and distribute code that leverages pythonnet. I think this would benefit most people in a Docker-based CI environment (ex. Gitlab), but I expect this will help others as well.

If you're interested in combining efforts on this, let me know!

https://hub.docker.com/r/cowboygneox/pythonnet/
https://github.com/cowboygneox/pythonnet-docker

Activity

  1. den-run-ai commented on Jan 10, 2017

    @den-run-ai
    Contributor
  2. den-run-ai commented on Jan 10, 2017

    @den-run-ai
    Contributor

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

  3. cowboygneox commented on Jan 10, 2017

    @cowboygneox
    ContributorAuthor

    @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?

  4. benley commented on Jan 10, 2017

    @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!

  5. den-run-ai commented on Jan 10, 2017

    @den-run-ai
    Contributor

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

    embedding and extending are terms used in CPython C-API:

    https://docs.python.org/3/extending/

  6. cowboygneox commented on Jan 10, 2017

    @cowboygneox
    ContributorAuthor

    @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.

  7. cowboygneox commented on Jan 12, 2017

    @cowboygneox
    ContributorAuthor

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

  8. den-run-ai commented on Jan 22, 2017

    @den-run-ai
    Contributor

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

  9. cowboygneox commented on Jan 23, 2017

    @cowboygneox
    ContributorAuthor

    @denfromufa Ping me when ready.

  10. added this to the 2.3.0 milestone on Feb 2, 2017
  11. vmuriart commented on Feb 24, 2017

    @vmuriart
    Contributor

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

  12. cowboygneox commented on Feb 25, 2017

    @cowboygneox
    ContributorAuthor

    @vmuriart Correct. I just uploaded the latest today to use Mono 4.8 and pythonnet 2.2.2. https://hub.docker.com/r/cowboygneox/pythonnet/

  13. vmuriart commented on Feb 25, 2017

    @vmuriart
    Contributor

    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?

  14. cowboygneox commented on Feb 26, 2017

    @cowboygneox
    ContributorAuthor

    @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.

  15. 2 remaining items

  16. vmuriart commented on Feb 26, 2017

    @vmuriart
    Contributor

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

  17. den-run-ai commented on Feb 26, 2017

    @den-run-ai
    Contributor

    @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.

  18. cowboygneox commented on Feb 27, 2017

    @cowboygneox
    ContributorAuthor

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

  19. den-run-ai commented on Feb 27, 2017

    @den-run-ai
    Contributor

    @cowboygneox @vmuriart here is the issue I posted on docker forum:

    https://forums.docker.com/t/cannot-convert-docker-cloud-account-pythonnet-to-organization/28975

    only commercial users can contact support directly.

  20. cowboygneox commented on Feb 27, 2017

    @cowboygneox
    ContributorAuthor

    Made a pull request and pushed some images to Docker: pythonnet/pythonnet-docker#1

  21. vmuriart commented on Feb 27, 2017

    @vmuriart
    Contributor

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

  22. den-run-ai commented on Feb 27, 2017

    @den-run-ai
    Contributor

    Can you add all of us to the team?

  23. den-run-ai commented on Feb 27, 2017

    @den-run-ai
    Contributor
  24. vmuriart commented on Feb 27, 2017

    @vmuriart
    Contributor

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

  25. den-run-ai commented on Mar 1, 2017

    @den-run-ai
    Contributor

    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'
    >>>
    
  26. vmuriart commented on Mar 3, 2017

    @vmuriart
    Contributor

    @cowboygneox thanks for including the shell script to build and deploy. Images are now on https://hub.docker.com/r/pythonnet/pythonnet/tags/

    I deleted the images from pythondotnet to avoid confusion, but I can't figure out how to delete that organization.

  27. den-run-ai commented on Mar 6, 2017

    @den-run-ai
    Contributor
  28. vkhombal commented on May 4, 2018

    @vkhombal

    Hello all,
    What are the current docker instructions?

  29. den-run-ai commented on Jun 12, 2018

    @den-run-ai
    Contributor

    @vkhombal there are some docker images as of last year (see wiki), but we are experiencing some permission issues with latest docker builds in 2018:

    pythonnet/pythonnet-docker#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions