Skip to content

Instantly share code, notes, and snippets.

@Jim-Holmstroem
Last active August 29, 2015 14:13
Show Gist options
  • Save Jim-Holmstroem/c4411fa2d9a639f1896c to your computer and use it in GitHub Desktop.
Save Jim-Holmstroem/c4411fa2d9a639f1896c to your computer and use it in GitHub Desktop.
easy setup for deis 1.2.0

Install client and ctl

mkdir -p ~/bin
cd ~/bin
curl -sSL http://deis.io/deisctl/install.sh | sh -s 1.2.0
curl -sSL http://deis.io/deis-cli/install.sh | sh -s 1.2.0

(optional) install for all users

sudo ln -fs $PWD/deisctl /usr/local/bin/deisctl
sudo ln -fs $PWD/deis /usr/local/bin/deis

Reference

Create cloud-config for the CoreOS instances

git clone https://github.com/deis/deis.git deis_source
cd deis_source
make discovery-url

Create 3 new droplets with

  • latest stable CoreOS
  • = 2GB of RAM

  • private networking (not available in all regions)
  • the user-data file from ./contrib/coreos/user-data

Install and start DEIS platform on the cluster

Note the IP of one of the nodes just created (we will use 1.2.3.4)

You will have to have "wild-card DNS" so just for testing we use the wild-card DNS service xip.io otherwise you'll would have to set it up with your provider.

export DEISCTL_TUNNEL=1.2.3.4
ssh-keygen -t rsa -f .ssh/id_rsa_deis
deisctl config platform set domain=1.2.3.4.xip.io
deisctl config platform set sshPrivateKey=~.ssh/id_rsa_deis
deisctl install platform
deisctl start platform
deisctl list

Register a user

deis register http://deis.1.2.3.4.xip.io
deis keys:add  # choose ida_rsa_deis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment