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
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
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
deis register http://deis.1.2.3.4.xip.io
deis keys:add # choose ida_rsa_deis