This project is a simple Bluemix catalog powered by elastic search, with the ability to add comments and tags to services if you like that sort of thing. Mostly it exists as a way to demonstrate how to deploy a Flask app to Bluemix, and how to use some of the DevOps services.
- Press this button:
- Make sure your toolchain and application name are set to something you want.
- Make sure your application has deployed. This might require you to manually run the toolchain on the first deploy.
- Add monitoring to your toolchain.
- Add a Scripted test, and upload the deltaNiner/test/Selenium/devops101-SE-Tests.html file.
- To populate the ElasticSearch DB, go to https://yourapp/search , you should be prompted to enter your SSO key (link provided on how to get that).
If you don't have an SSO key, you can add BM_USER and BM_PASSWORD environmental variables to your environment. And then do the following:
- cf ssh YOURNAMEHERE
- cd app
- source .profile.d/python.sh
- .cloudfoundry/python/bin/python bin/getBMServices.py
- get a bluemix log
- cf login --sso (for sso accounts)
- cf create-service compose-for-elasticsearch Standard YOURNAMEHERE-ES
- cf push YOURNAMEHERE -b https://github.com/cloudfoundry/buildpack-python.git
- cf bind-service YOURNAMEHERE YOURNAMEHERE-ES
- cf push YOURNAMEHERE -b https://github.com/cloudfoundry/buildpack-python.git
- Add environment variables for CF
- cf ssh YOURNAMEHERE
- cd app
- source .profile.d/python.sh
- .cloudfoundry/python/bin/python bin/getBMServices.py
- Enable devops in portal. Integrate with github, track deployment of code changes
- Change Deploy job to add "-b https://github.com/cloudfoundry/buildpack-python.git"
- Monitoring should be enabled already
- Add a new synthetic test
- Test a specific URL
- Upload Selenium Test - NOt sure why GIt integration doesn't work