Vagrant is awesome, as isolated Development Environment. Unfortunately, we cannot use Vagrant in MacOs for severtal reason. Therefore, we use this Docker configuration as Vagrant Replacement
. The Docker Image is based on Ubuntu Jammy (22.04.1 LTS).
Using this configuration, we finally have isolated environment for Development. We use it as stateful environment, means we rarely destroy any data inside the container.
Clone this repository
~$ [email protected]:landx-id/docker-development-environment.git
Login to container
~$ make cli
If you want to install something inside container, then you should login as root
~$ docker exec -it dev-env /bin/bash
NodeJS can be installed with NVM
~$ nvm install 16.14.1
~$ nvm use 16.14.1
~$ node --version
v16.14.1
Python 3.9 will be installed during Docker Build.
~$ python3 --version
Python 3.9.15
If you want to work with your project, we recommend to place it in projects
folder. This folder is mounted directly in the container, so you can work using your favorite IDE in your computer host.
Sometimes, there is a glitch that makes login to container fail when you execute make cli
. If it happens, just retry to execute the command until you finally success to login into the container.