[GitHub] DanLavine commented on a change in pull request #46: Deploy CouchDB manually

2017-08-03 Thread git
DanLavine commented on a change in pull request #46:  Deploy CouchDB manually
URL: 
https://github.com/apache/incubator-openwhisk-deploy-kube/pull/46#discussion_r131268508
 
 

 ##
 File path: kubernetes/couchdb/README.md
 ##
 @@ -10,23 +10,33 @@ Pod. This can be done by running:
 kubectl apply -f couchdb.yml
 ```
 
-Once the Pod is up and running, the pod then needs to be
-configured. To do this, you need to run the configuration
-pod:
+This pod goes through the process of pulling the OpenWhisk
+repo and running through some of the ansible playbooks for
+configuring CouchDB.
+
+**NOTE** the pod will say running as soon as the start command
 
 Review comment:
   I'll wait for CI to make sure it passes. If it doesn't I'll update 
everything in 1 PR.
   
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] DanLavine commented on a change in pull request #46: Deploy CouchDB manually

2017-08-03 Thread git
DanLavine commented on a change in pull request #46:  Deploy CouchDB manually
URL: 
https://github.com/apache/incubator-openwhisk-deploy-kube/pull/46#discussion_r131268025
 
 

 ##
 File path: kubernetes/couchdb/README.md
 ##
 @@ -10,23 +10,33 @@ Pod. This can be done by running:
 kubectl apply -f couchdb.yml
 ```
 
-Once the Pod is up and running, the pod then needs to be
-configured. To do this, you need to run the configuration
-pod:
+This pod goes through the process of pulling the OpenWhisk
+repo and running through some of the ansible playbooks for
+configuring CouchDB.
+
+**NOTE** the pod will say running as soon as the start command
 
 Review comment:
   oops
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] DanLavine commented on a change in pull request #46: Deploy CouchDB manually

2017-08-03 Thread git
DanLavine commented on a change in pull request #46:  Deploy CouchDB manually
URL: 
https://github.com/apache/incubator-openwhisk-deploy-kube/pull/46#discussion_r131268774
 
 

 ##
 File path: kubernetes/couchdb/docker/init.sh
 ##
 @@ -18,6 +24,30 @@ pushd /openwhisk
 echo "$AUTH_WHISK_SYSTEM" > /openwhisk/ansible/files/auth.guest
   fi
 
+  # start couchdb with a background process
+  couchdb -b
+
+  # wait for couchdb to be up and running
+  TIMEOUT=0
+  echo "wait for CouchDB to be up and running"
+  until [ $TIMEOUT -eq 25 ]; do
+echo "waiting for CouchDB to be available"
+
+if [ -n $(/etc/init.d/couchdb status | grep 'running') ]; then
+  echo "CouchDB is up and running"
+  break
+fi
+
+sleep 0.2
+let TIMEOUT=TIMEOUT+1
+  done
+
+  if [ $TIMEOUT -eq 25 ]; then
+echo "failed to setup CouchDB"
+exit 1
+  fi
+
+
   # setup and initialize DB
   pushd ansible
 ansible-playbook -i environments/local setup.yml \
 
 Review comment:
   yes. I wanted to make sure it always pulls the latest OW master code. That 
way I don't need to keep updating the image. Of course, this also means that if 
it fails to deploy then the image will need to be fixed as a whole
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] DanLavine commented on a change in pull request #46: Deploy CouchDB manually

2017-08-03 Thread git
DanLavine commented on a change in pull request #46:  Deploy CouchDB manually
URL: 
https://github.com/apache/incubator-openwhisk-deploy-kube/pull/46#discussion_r131268508
 
 

 ##
 File path: kubernetes/couchdb/README.md
 ##
 @@ -10,23 +10,33 @@ Pod. This can be done by running:
 kubectl apply -f couchdb.yml
 ```
 
-Once the Pod is up and running, the pod then needs to be
-configured. To do this, you need to run the configuration
-pod:
+This pod goes through the process of pulling the OpenWhisk
+repo and running through some of the ansible playbooks for
+configuring CouchDB.
+
+**NOTE** the pod will say running as soon as the start command
 
 Review comment:
   I'll wait for CI to make sure it passes. If it doesn't I'll update 
everything in 1 PR.
   
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] DanLavine commented on a change in pull request #46: Deploy CouchDB manually

2017-08-03 Thread git
DanLavine commented on a change in pull request #46:  Deploy CouchDB manually
URL: 
https://github.com/apache/incubator-openwhisk-deploy-kube/pull/46#discussion_r131268025
 
 

 ##
 File path: kubernetes/couchdb/README.md
 ##
 @@ -10,23 +10,33 @@ Pod. This can be done by running:
 kubectl apply -f couchdb.yml
 ```
 
-Once the Pod is up and running, the pod then needs to be
-configured. To do this, you need to run the configuration
-pod:
+This pod goes through the process of pulling the OpenWhisk
+repo and running through some of the ansible playbooks for
+configuring CouchDB.
+
+**NOTE** the pod will say running as soon as the start command
 
 Review comment:
   oops
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services