ramikrispin,
@ramikrispin@mstdn.social avatar

(1/4) Setting A Dockerized Python Environment — The Hard Way

I create a (relatively) short tutorial about setting up a dockerized 🐳 Python 🐍 environment on the command line (CLI). Generally, I don't advocate anyone to set their Python development workflow via the CLI. There are better tools to work with Python and Docker, such as VScode with the Dev Containers extension. 🧵👇🏼

🔗: https://medium.com/p/e62531bca7a0

ramikrispin,
@ramikrispin@mstdn.social avatar

(2/4) Rather, there is a great learning experience here of the core Docker commands and functionalities. The goal here is to see how you can take an official Python image and customize it to your needs.

ramikrispin,
@ramikrispin@mstdn.social avatar

(3/4) This includes the following:
✅ Running Python base image in interactive mode on the CLI
✅ Create a Dockerfile and add new components to the base image
✅ Install Python libraries and tools such as CLI text editor
✅ Expose a bash terminal and enable the editing of Python scripts
✅ Use volumes to transfer the container from an ephemeral mode to a persistent

ramikrispin,
@ramikrispin@mstdn.social avatar

(4/4) A more robust approach for running Python on a containerized environment is available in this tutorial:

https://github.com/RamiKrispin/vscode-python

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • rosin
  • Durango
  • thenastyranch
  • ngwrru68w68
  • InstantRegret
  • DreamBathrooms
  • modclub
  • magazineikmin
  • Youngstown
  • everett
  • ethstaker
  • slotface
  • mdbf
  • kavyap
  • JUstTest
  • osvaldo12
  • GTA5RPClips
  • cisconetworking
  • provamag3
  • khanakhh
  • tacticalgear
  • cubers
  • Leos
  • normalnudes
  • megavids
  • tester
  • anitta
  • lostlight
  • All magazines