Skip to content
πŸ‘¨β€πŸ³πŸž Quick and easy baking of computing environments.
JavaScript Shell HTML Other
Branch: master
Clone or download

Latest commit

dependabot-preview chore(deps): Bump configstore from 5.0.0 to 5.0.1 (#227)
Bumps [configstore](https://github.com/yeoman/configstore) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/yeoman/configstore/releases)
- [Commits](yeoman/configstore@v5.0.0...v5.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Latest commit 3dfe55d Feb 13, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
config
docs/img
installers
lib
remotes/bakelets-source
test
.editorconfig
.gitignore
CHANGELOG.md
Gruntfile.js
LICENSE
README.md
baker.js
global-vars.js
package-lock.json
package.json

README.md

Baker 🍞 | dependencies Status

Meet Baker! -- a simple tool for provisioning virtual machines and containers. With Baker you can quickly create development environments and run your code. With one tool, you have the functionality of vagrant, docker, ansible, and task runners like grunt.

See a running demo below:

For more details, checkout docs.getbaker.io and join our Slack.

Install from source

git clone https://github.com/ottomatica/Baker
cd Baker
npm install
npm link

Also see other binary installation options.

Using Baker

Baker uses a configuration file (baker.yml) in the root directory of you project. This is an example of a baker.yml file. By running baker bake Baker provisions a VM with nodejs installed, and the specified ip address and port forwarding rules configured for you. You can access the VM by running baker ssh or run commands inside the VM with baker run <Command Name>. Your code is accessible in the VM via a shared folder.

---
name: baker-test
vm:
  ip: 192.168.22.22
  ports: 8000
lang:
  - nodejs9
commands:
  serve: cd /baker-test/deployment/express && npm install && node index.js

You can also point to a git repository with a baker.yml file, and and Baker will do the rest:

$ baker bake --repo https://github.com/ottomatica/baker-test.git

Baker also supports creating environments inside containers that do not require a VM.

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

Setting up a Java environment with MySQL can be done easily.

name: onboard
vm:
  ip: 192.168.8.8
  ports: 8080
vars:
  - mysql_password:
      prompt: Type your password for mysql server
tools:
  - maven
services:
  - mysql:
      version: 8
      service_conf: env/templates/mysql.cfg
      client_conf: env/templates/my.cnf
lang:
  - java8
config:
  - template: 
      src: env/templates/hibernate-template.cfg.xml 
      dest: /Onboarding/CoffeeMaker/src/main/resources/hibernate.cfg.xml
commands:
  serve: cd CoffeeMaker && mvn spring-boot:run
  debug: cd CoffeeMaker && mvnDebug spring-boot:run
  test: cd CoffeeMaker && mvn test
You can’t perform that action at this time.