Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge pull request #8 from TheNewNormal/v0.1.5
Browse files Browse the repository at this point in the history
v0.1.5
  • Loading branch information
rimusz committed Jan 26, 2016
2 parents b6b7071 + 9dbe6b2 commit 1c7a01a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 21 deletions.
4 changes: 2 additions & 2 deletions src/Kube-Cluster/Kube-Cluster-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.1.4</string>
<string>0.1.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>29</string>
<string>31</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
39 changes: 21 additions & 18 deletions src/bin/install_deis
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# get App's Resources folder
res_folder=$(cat ~/kube-cluster/.env/resouces_path)

# get VM's IP
# get VMs IPs
node1_vm_ip=$("${res_folder}"/bin/corectl q -i k8snode-01)

# get lastest OS X helm version
Expand All @@ -15,14 +15,17 @@ curl -s https://get.helm.sh | bash > /dev/null 2>&1
cd $current_folder
echo "helm is installed to ~/kube-cluster/bin ... "

# run helm for the first time
# run helm update
helm up
# add Deis Chart repo
helm repo add deis https://github.com/deis/charts
# Get the latest version of all Charts from repos
# get the latest version of all Charts from all repos
helm up
# Fetch Deis Chart to your helm's working directory
# fetch Deis Chart to your helm's working directory
helm fetch deis/deis
# pin router to node worker1
echo " nodeSelector:" >> ~/.helm/workspace/charts/deis/manifests/deis-router-rc.yaml
echo " node: worker1" >> ~/.helm/workspace/charts/deis/manifests/deis-router-rc.yaml
# Install Deis PaaS
helm install deis

Expand Down Expand Up @@ -50,21 +53,11 @@ until kubectl --namespace=deis get po | grep [d]eis-workflow- | grep "Running"
until curl -o /dev/null -sI http://deis.$node1_vm_ip.xip.io/health-check >/dev/null 2>&1; do i=$(( (i+1) %4 )); printf "\r${spin:$i:1}"; sleep .1; done
#

sleep 5

# run deis register user
echo " "
echo "Registering user ..."
deis register deis.$node1_vm_ip.xip.io

# add ssh key to Deis PaaS
echo " "
echo "Adding ssh key to Deis PaaS ... "
deis keys:add ~/.ssh/id_rsa.pub
echo " "
sleep 20

echo " "
echo "Clonning some demo Apps for Deis ... "
echo " "
rm -fr ~/kube-cluster/deis/apps
mkdir -p ~/kube-cluster/deis/apps
cd ~/kube-cluster/deis/apps
Expand All @@ -73,8 +66,19 @@ git clone https://github.com/deis/helloworld.git
git clone https://github.com/deis/example-go.git
echo " "

cd ~/kube-cluster/deis/apps
# run deis register user
echo " "
echo "Registering user ..."
deis register http://deis.$node1_vm_ip.xip.io

# add ssh key to Deis PaaS
echo " "
echo "Adding ssh key to Deis PaaS ... "
deis keys:add ~/.ssh/id_rsa.pub
echo " "
#
cd ~/kube-cluster/deis/apps
#
echo "Deis PaaS install is completed ..."
echo "It can be accessed via http://deis.$node1_vm_ip.xip.io "
echo " "
Expand All @@ -83,4 +87,3 @@ echo "Deploy Applications - https://github.com/deis/workflow/blob/node1/docs/src
echo "To manage Applications - https://github.com/deis/workflow/blob/node1/docs/src/using-deis/managing-an-application.md"
echo "Using Deis PaaS - https://github.com/deis/workflow/tree/node1/docs/src/using-deis"
echo " "

2 changes: 1 addition & 1 deletion src/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ do
echo "Set CoreOS Release Channel:"
echo " 1) Alpha "
echo " 2) Beta "
echo " 3) Stable "
echo " 3) Stable (recommended)"
echo " "
echo -n "Select an option: "

Expand Down

0 comments on commit 1c7a01a

Please sign in to comment.