templates.sh 1.7 KB

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. EXAMPLES_BASE=$(pwd)/files/examples
  3. find files/examples -name '*.json' -delete
  4. TEMP=`mktemp -d`
  5. pushd $TEMP
  6. wget https://github.com/openshift/origin/archive/master.zip -O origin-master.zip
  7. wget https://github.com/openshift/django-ex/archive/master.zip -O django-ex-master.zip
  8. wget https://github.com/openshift/rails-ex/archive/master.zip -O rails-ex-master.zip
  9. wget https://github.com/openshift/nodejs-ex/archive/master.zip -O nodejs-ex-master.zip
  10. wget https://github.com/openshift/dancer-ex/archive/master.zip -O dancer-ex-master.zip
  11. wget https://github.com/openshift/cakephp-ex/archive/master.zip -O cakephp-ex-master.zip
  12. wget https://github.com/jboss-openshift/application-templates/archive/master.zip -O application-templates-master.zip
  13. unzip origin-master.zip
  14. unzip django-ex-master.zip
  15. unzip rails-ex-master.zip
  16. unzip nodejs-ex-master.zip
  17. unzip dancer-ex-master.zip
  18. unzip cakephp-ex-master.zip
  19. unzip application-templates-master.zip
  20. cp origin-master/examples/db-templates/* ${EXAMPLES_BASE}/db-templates/
  21. cp origin-master/examples/image-streams/* ${EXAMPLES_BASE}/image-streams/
  22. cp django-ex-master/openshift/templates/* ${EXAMPLES_BASE}/quickstart-templates/
  23. cp rails-ex-master/openshift/templates/* ${EXAMPLES_BASE}/quickstart-templates/
  24. cp nodejs-ex-master/openshift/templates/* ${EXAMPLES_BASE}/quickstart-templates/
  25. cp dancer-ex-master/openshift/templates/* ${EXAMPLES_BASE}/quickstart-templates/
  26. cp cakephp-ex-master/openshift/templates/* ${EXAMPLES_BASE}/quickstart-templates/
  27. mv application-templates-master/jboss-image-streams.json ${EXAMPLES_BASE}/xpaas-streams/
  28. find application-templates-master/ -name '*.json' -exec mv {} ${EXAMPLES_BASE}/xpaas-templates/ \;
  29. popd
  30. git diff files/examples