Skip to content
πŸ‘¨β€πŸ³πŸž Quick and easy baking of computing environments.
JavaScript Shell HTML Other
Branch: dev
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
config fix: adding memory to baker init template Oct 30, 2019
installers chore: updating md5sums in PKGBUILD Aug 26, 2019
lib fix: fixing regex for parsing version of bakelets Oct 31, 2019
remotes/bakelets-source Merge commit 'e07c7bc4d507b676b9fda86801aee5fc7c357d06' into dev Oct 31, 2019
test
.editorconfig Adding editorconfig βš™οΈ Jun 10, 2017
.gitignore package-lock.json should be commited into source repo Nov 2, 2018
CHANGELOG.md chore(release): 0.7.2 Aug 26, 2019
Gruntfile.js move content of /src to top-level directory Nov 2, 2018
LICENSE
README.md
baker.js move content of /src to top-level directory Nov 2, 2018
global-vars.js Baker vault POC. Nov 25, 2018
package-lock.json
package.json

README.md

Baker community survey πŸžβ‰οΈ

If you have time, please answer few short questions to help us improve Baker: community survey

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: asciicast

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.