summaryrefslogtreecommitdiffstats
path: root/roles/openshift_examples/templates.sh
diff options
context:
space:
mode:
authorThomas Wiest <twiest@users.noreply.github.com>2015-06-22 15:48:00 -0400
committerThomas Wiest <twiest@users.noreply.github.com>2015-06-22 15:48:00 -0400
commitc7d674b0bf6c4804f26808f49b0ceff2500b852b (patch)
treefbb1a0138703a7183e49cf07c6bd1ea0e863e241 /roles/openshift_examples/templates.sh
parenta7ac3f7b513fe57ddccad15bdb6c7e9091f16bcd (diff)
parent15bcfb3e59e6e31c00e23725547f896c03c93290 (diff)
downloadopenshift-c7d674b0bf6c4804f26808f49b0ceff2500b852b.tar.gz
openshift-c7d674b0bf6c4804f26808f49b0ceff2500b852b.tar.bz2
openshift-c7d674b0bf6c4804f26808f49b0ceff2500b852b.tar.xz
openshift-c7d674b0bf6c4804f26808f49b0ceff2500b852b.zip
Merge pull request #289 from sdodson/openshift_examples
Openshift examples
Diffstat (limited to 'roles/openshift_examples/templates.sh')
-rwxr-xr-xroles/openshift_examples/templates.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/roles/openshift_examples/templates.sh b/roles/openshift_examples/templates.sh
new file mode 100755
index 000000000..4f3050494
--- /dev/null
+++ b/roles/openshift_examples/templates.sh
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+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' -exec mv {} ${EXAMPLES_BASE}/xpaas-templates/ \;
+popd
+git diff files/examples