EOS Development on Docker
We love the little whale. It allows us to build products on a single platform using micro-services architecture, and deploy across a wide variety of environments. It’s light, fast and liberates developers from the drudgery of having to maintain support for multiple operating systems
EOS, an amazing blockchain solution, thankfully has the good sense to maintain an image of its product on the Docker Hub, which means that whether on OSX, Linux or (gulp!) the Windows platforms, we are spared from having to install source and tools, and having to compile and run services by hand — rather we issue a single command and the latest and freshest version runs in our environment, ready to go
To get there is a little more complicated than the various articles and documentation out there lead us to believe. In this article I will attempt to lay out a clean and simple procedure for getting up and running quickly
Docker Compose
The Docker environment comes with an orchestrator that allows us to abstract a great many details about how to run containers¹
EOS provides a docker-compose.yml
on their github repository, which is great but isn’t specifically for developers i.e. tools like eosiocpp
aren’t included in the image. Fortunately, they do have an image called eosio/eos-dev
for developers and we modify the current yml to use this correct image — I provide my fixed-up version on github, which I recommend you place in a directory called eos
(you can call it whatever you…