diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2015-06-30 10:41:09 -0400 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2015-06-30 10:41:09 -0400 |
commit | 06a1cf34750bd43fd4d3dd8fda0c4bb1cbefa059 (patch) | |
tree | bea89700cd2ed60560e601636811760380eadc65 /roles/openshift_examples/examples-sync.sh | |
parent | a27076bee3e8f93681f5d5e1c4b072084f6847b6 (diff) | |
parent | 06eafb491996ec592f303d03e28bd02fee559f85 (diff) | |
download | openshift-06a1cf34750bd43fd4d3dd8fda0c4bb1cbefa059.tar.gz openshift-06a1cf34750bd43fd4d3dd8fda0c4bb1cbefa059.tar.bz2 openshift-06a1cf34750bd43fd4d3dd8fda0c4bb1cbefa059.tar.xz openshift-06a1cf34750bd43fd4d3dd8fda0c4bb1cbefa059.zip |
Merge pull request #312 from sdodson/xpaas_updates
Xpaas updates
Diffstat (limited to 'roles/openshift_examples/examples-sync.sh')
-rwxr-xr-x | roles/openshift_examples/examples-sync.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/roles/openshift_examples/examples-sync.sh b/roles/openshift_examples/examples-sync.sh new file mode 100755 index 000000000..12d3bc263 --- /dev/null +++ b/roles/openshift_examples/examples-sync.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +# Utility script to update the ansible repo with the latest templates and image +# streams from several github repos +# +# This script should be run from openshift-ansible/roles/openshift_examples + +EXAMPLES_BASE=$(pwd)/files/examples +find files/examples -name '*.json' -delete +TEMP=`mktemp -d` +pushd $TEMP +wget https://github.com/openshift/origin/archive/master.zip -O origin-master.zip +wget https://github.com/openshift/django-ex/archive/master.zip -O django-ex-master.zip +wget https://github.com/openshift/rails-ex/archive/master.zip -O rails-ex-master.zip +wget https://github.com/openshift/nodejs-ex/archive/master.zip -O nodejs-ex-master.zip +wget https://github.com/openshift/dancer-ex/archive/master.zip -O dancer-ex-master.zip +wget https://github.com/openshift/cakephp-ex/archive/master.zip -O cakephp-ex-master.zip +wget https://github.com/jboss-openshift/application-templates/archive/master.zip -O application-templates-master.zip +unzip origin-master.zip +unzip django-ex-master.zip +unzip rails-ex-master.zip +unzip nodejs-ex-master.zip +unzip dancer-ex-master.zip +unzip cakephp-ex-master.zip +unzip application-templates-master.zip +cp origin-master/examples/db-templates/* ${EXAMPLES_BASE}/db-templates/ +cp origin-master/examples/image-streams/* ${EXAMPLES_BASE}/image-streams/ +cp django-ex-master/openshift/templates/* ${EXAMPLES_BASE}/quickstart-templates/ +cp rails-ex-master/openshift/templates/* ${EXAMPLES_BASE}/quickstart-templates/ +cp nodejs-ex-master/openshift/templates/* ${EXAMPLES_BASE}/quickstart-templates/ +cp dancer-ex-master/openshift/templates/* ${EXAMPLES_BASE}/quickstart-templates/ +cp cakephp-ex-master/openshift/templates/* ${EXAMPLES_BASE}/quickstart-templates/ +mv application-templates-master/jboss-image-streams.json ${EXAMPLES_BASE}/xpaas-streams/ +find application-templates-master/ -name '*.json' ! -wholename '*secret*' -exec mv {} ${EXAMPLES_BASE}/xpaas-templates/ \; +popd +git diff files/examples |