In the previous post, I’ve written about how to start to develop the Flask application using the Python virtual environment. In this writing, I’ll use different approach using the containerized environment with Toolbox (or Toolbx).
Toolbox makes it easy to use a containerized environment for everyday software development and debugging. With this tool, makes the Linux containers are more practical to use. We will benefit the Linux Distro packages to run a Flask application inside the container.
I choose a container image from Debian testing distribution for this kind of containerized environment. You may consider to use another distro such as Tumbleweed, Arch, Rawhide, or whatever you like.
Create a toolbox container with the toolbox-create
command:
$ toolbox create -i quay.io/toolbx-images/debian-toolbox:testing
It automatically creates a container with the name debian-toolbox-testing
. Enter to the Toolbox container with toolbox-enter, we will use the interactive shell to install the Debian packages.