Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A docker section for python? #1084

Open
JaredCE opened this issue Nov 18, 2020 · 1 comment
Open

A docker section for python? #1084

JaredCE opened this issue Nov 18, 2020 · 1 comment

Comments

@JaredCE
Copy link

JaredCE commented Nov 18, 2020

I came here as I was looking for similar to: Node.js Best Practices but for Python and github surfaced this in the search results.

I notice this Guide lacks a Docker section. Is this something that could be incorporated?

@AcmeNuclear
Copy link

@JaredCE - I agree that mentioning (at a minimum) the use of Docker for handling one's virtual environments for Python development is a great idea. I recently switched over from using Conda (and sometimes venv) for maintaining my Python virtual environments to now using a Docker based solution.

I tried this a few years back and it was not quite ready for mainstream (or perhaps I was not). Now I currently run my development environments (on a Windows machine) using the interconnected - WSL2 (Ubuntu 20.04), Docker Desktop for Windows, Git Bash, and VS Code with the Remote Containers plugin (and Remote WSL). While this sounds more complex on the surface, I was able to get it set up and had a container pop out "Hello World!" in under 10 minutes (I must credit the good instructions provided on YouTube - add YouTuber handle here). I did have almost all of the individual pieces already installed on my machine, but the message is still the same - setup was simple.

I understand if the Python-guide only makes mention of this option and perhaps points to guidance for those interested, as this is more an exercise in using WSL2, Docker D4W, and VS Code than using a Python feature. However, the end result allows me to be much more productive in my Python development work and my virtual environment organization has improved greatly.

I still have to maintain the use of Conda and/or venv though. I am not permitted to use Docker in my work (employment) environment. Waiting patiently for that change. I am a lifetime hobby programmer with current employment that provides opportunities to do minimal coding.

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants