Skip to content

Instantly share code, notes, and snippets.

View akurkin's full-sized avatar
💛

Alex Kurkin akurkin

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

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