This project can be used as a starter to create a local environment to develop an application with Python using Docker.
The idea is that you can use docker to develop your Python application, without having to install anything on your system.
Top benefits:
- easy: you can easily configure your environment with the needed tools and versions
- isolation: you will not mess up your system, anything is containerized and could be cleared in a moment
- consistency: Docker provides a consistent environment for your application, the same for every developer or system
After the initial configuration, you will use Memento Docker Plugin and act pretty the same as you use to do if you have Python installed on your system.
To let anything works, you need to have docker
and docker-compose
installed and configured on your system.
Also, you need Memento, Memento Kickstarter and Memento Docker Plugin.
Start by creating a new project using this kickstarter:
memento kickstarter create python
Move to <your-new-project-dir>
and run memento docker configure
.
First time you will be prompted for a couple of questions.
You will see a basic help with some information about the available commands.
To initialize the docker environment for your project, run:
memento docker configure docker:create
You can check that everything is working by running:
memento docker cmd python --version
Eureka! If you can see python
version probably anything went well, and you can start developing your awesome application!
Any feedback, bug reports or ideas are extremely welcome.
Reach us through our website or send us an email at info@bmeme.com.