Last active
October 28, 2016 02:41
-
-
Save tomas-stefano/fd0362069216fd91b883 to your computer and use it in GitHub Desktop.
Simple script to install Deis locally with vagrant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# All this commands are listed on the docs | |
# I just put everything together. | |
git clone https://github.com/deis/deis.git | |
cd deis/ | |
git checkout v1.7.3 | |
# make sure you have access to https://discovery.etcd.io/ | |
make discovery-url | |
# After running the command above, make sure that you have | |
# the discovery key on contrib/coreos/user-data | |
vagrant up | |
# List the cluster running | |
vagrant status | |
# Make sure you have this on your path | |
echo "Installing deisctl" | |
mkdir -p ~/bin | |
export PATH="$HOME/bin:$PATH" # make sure that the bin dir is on your path | |
cd ~/bin | |
curl -sSL http://deis.io/deisctl/install.sh | sh -s 1.7.3 | |
sudo ln -fs "$PWD/deisctl" /usr/local/bin/deisctl | |
# for vagrant users ONLY | |
export DEISCTL_TUNNEL=172.17.8.100 | |
deisctl config platform set sshPrivateKey="${HOME}/.vagrant.d/insecure_private_key" | |
echo "If you see a single line of output, the control utility is communicating with | |
the nodes." | |
deisctl list | |
deisctl config platform set domain=local3.deisapp.com | |
echo "Installing Deis platform" | |
deisctl install platform | |
echo "Starting Deis platform" | |
deisctl start platform | |
echo "Verifying that all of the Deis units are loaded and active" | |
deisctl list | |
curl -sSL http://deis.io/deis-cli/install.sh | sh | |
mv deis ~/bin | |
ln -fs "$HOME/deis" /usr/local/bin/deis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment