This is the blueprint example used for Cloudify's Intro section in our Docs.
The blueprint runs a local Python SimpleHTTPServer and allows to tear it down as well and supports Linux,
- Clone the repository
git clone https://github.com/cloudify-examples/simple-python-webserver-blueprint.git
cd simple-python-webserver-blueprint
- Initialize the blueprint
cfy local init --blueprint-path blueprint.yaml
- Install
cfy local execute -w install
This will run a Hello World
server on your local machine in port 8000.
You can curl http://localhost:8000
or open the link in your browser.
- Get Outputs
cfy local outputs
You should see the endpoint of the webserver.
- Get Instances
cfy local instances
You should see the two instances as defined in the blueprint.
- Uninstall
cfy local execute -w uninstall