openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markusthoem...@apache.org
Subject [incubator-openwhisk-performance] 05/22: Refactor deployment
Date Wed, 16 Aug 2017 09:23:45 GMT
This is an automated email from the ASF dual-hosted git repository.

markusthoemmes pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-performance.git

commit 482c7a720287a8e6a7591d440170f8c4b2a911b4
Author: Markus Thoemmes <markus.thoemmes@de.ibm.com>
AuthorDate: Mon Apr 24 08:22:47 2017 +0200

    Refactor deployment
---
 .travis.yml |  1 -
 deploy.sh   | 22 ++++++++++++++++------
 2 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index a847366..15ae264 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,7 +7,6 @@ env:
   - TERM=dumb
 
 install:
-  - git clone --depth 1 https://github.com/openwhisk/openwhisk.git
   - ./deploy.sh
 
 script:
diff --git a/deploy.sh b/deploy.sh
index 4cd9415..15bf1f6 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -1,8 +1,18 @@
 #!/bin/sh
 
-images="controller invoker"
-for i in $images
-do
-    docker pull "openwhisk/$i"
-    docker tag "openwhisk/$i" $i
-done
\ No newline at end of file
+# checkout OpenWhisk latest
+git clone --depth 1 https://github.com/openwhisk/openwhisk.git
+
+# install ansible
+pip install --user ansible==2.1.2.0
+
+cd openwhisk/ansible
+ANSIBLE_CMD="ansible-playbook -i environments/local -e docker_image_prefix=openwhisk"
+
+$ANSIBLE_CMD setup.yml
+$ANSIBLE_CMD prereq.yml
+$ANSIBLE_CMD couchdb.yml
+$ANSIBLE_CMD initdb.yml
+$ANSIBLE_CMD apigateway.yml
+$ANSIBLE_CMD wipe.yml
+$ANSIBLE_CMD openwhisk.yml
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
"commits@openwhisk.apache.org" <commits@openwhisk.apache.org>.

Mime
View raw message