Skip to content

Instantly share code, notes, and snippets.

@akurkin
akurkin / common.yml
Last active Mar 10, 2017
ROSI docker-compose.yml
View common.yml
#
# Shared definition of ruby microservice
#
microservice:
command: "runsvdir /etc/service"
environment:
PORT: 3000
RAILS_ENV: development
SERVICE_PLATFORM: "mia"
ports:
View lne.rb
def unit_price(item)
if item.order.is_a?(Orders::DsrOrder) && item.eligible_for_dsr_discount?
item.stylist_price
else
item.price
end
end
View README.md

Vagrant Setup

This tutorial guides you through creating your first Vagrant project.

We start with a generic Ubuntu VM, and use the Chef provisioning tool to:

  • install packages for vim, git
  • create user accounts, as specified in included JSON config files
  • install specified user dotfiles (.bashrc, .vimrc, etc) from a git repository

Afterwards, we'll see how easy it is to package our newly provisioned VM