Using Mamba with Docker

Use Mamba straightaway with Docker

You can use Mamba right away by using Docker. Install Docker first. Then create a project directory.


$ mkdir mamba_project_dir
$ cd mamba_project_dir

Then you can run Mamba cli program right away.


$ docker run --rm --name mamba  --mount type=bind,source="$(pwd)",destination=/code,consistency=cached arjunaskykok/black-mamba init

If you use Windows, you may want to change source="$(pwd)" with source="your directory in Windows". You can check your mamba_project_dir has been initialized.


$ ls
build			decentralized_app	migrations		test
contracts		deployed		settings.py

Create a Vyper file in contracts directory. Then you can compile it with Docker.


$ docker run --rm --name mamba  --mount type=bind,source="$(pwd)",destination=/code,consistency=cached arjunaskykok/black-mamba compile

Right now, testing is not supported with Docker. But it is being worked on.