DEV Community

Chris­čî▒Parnin
Chris­čî▒Parnin

Posted on

Baker, a simple tool for provisioning virtual machines and containers.

Meet Baker! --- a simple tool for provisioning virtual machines and containers.

Baker allows you to quickly create development environments for developing and running your code. With one tool, you have the functionality of vagrant, docker, ansible, and task runners like grunt.

This example creates a simple development environment for using mkdocs, a static site generator in python.

name: baker-docs
container: 
  ports: 8000
lang:
  - python2
commands:
  build: mkdocs build
  serve: mkdocs serve -a 0.0.0.0:8000
  gh-deploy: mkdocs gh-deploy
Enter fullscreen mode Exit fullscreen mode

Quickly provision a VM with docker.

name: docker-env
vm:
  ip: 192.168.8.8
tools:
  - docker
Enter fullscreen mode Exit fullscreen mode

To use baker, just place a baker.yml file in your current code repository, then run baker bake. You can run baker ssh to access your environment or run commands inside the environment with baker run. Your code is accessible in the baker environment via a shared folder.

For more details, checkout docs.getbaker.io.

Top comments (0)