Last active
March 10, 2016 17:19
-
-
Save jnoller/85c8f503edc81d80002f to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
echo "Setting up UCP" | |
read -p "Enter Cluster Name [ENTER]": clustername | |
read -p "Enter UCP User Name [ENTER]": username | |
read -s -p "Enter UCP password and press [ENTER] ": password | |
echo "Deploying Carina Cluster" | |
carina create --wait $clustername | |
carina credentials $clustername | |
carina env $clustername | |
eval "$(carina env $clustername)" | |
echo "Starting up UCP" | |
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock \ | |
-e UCP_ADMIN_USER=$username -e UCP_ADMIN_PASSWORD=$password \ | |
--name ucp docker/ucp install --swarm-port 2377 --fresh-install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment