Skip to content

Instantly share code, notes, and snippets.

@jnoller
Last active March 10, 2016 17:19
Show Gist options
  • Save jnoller/85c8f503edc81d80002f to your computer and use it in GitHub Desktop.
Save jnoller/85c8f503edc81d80002f to your computer and use it in GitHub Desktop.
#!/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