Skip to content

Instantly share code, notes, and snippets.

View nicolasbernard's full-sized avatar

Nicolas BERNARD nicolasbernard

  • Paris, FR
View GitHub Profile
FROM ubuntu:12.04
MAINTAINER Nicolas BERNARD <[email protected]>
# Ruby
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C3173AA6
RUN echo deb http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu precise main > /etc/apt/sources.list.d/brightbox.list
# NodeJS (Assets pipeline)
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C7917B12
RUN echo deb http://ppa.launchpad.net/chris-lea/node.js/ubuntu precise main > /etc/apt/sources.list.d/nodejs.list
@nicolasbernard
nicolasbernard / docker-k8s.sh
Created March 26, 2016 12:25
How to install Docker/k8s from scratch on OSX
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # install HomeBrew
brew tap caskroom/cask # install Cask
brew cask install virtualbox # install VirtualBox
brew install docker docker-machine # install Docker and Docker-machine
docker-machine create --driver virtualbox default # create a Docker VM named "default"
eval $(docker-machine env default) # set env var to tell Docker client to talk to our VM
docker version # Docker works, yay!
brew tap redspread/spread # tell HomeBrew where Spread is
brew install kubectl spread # install Kubectl and Spread
spread cluster start # ask Spread to start a k8s cluster with Docker client settings