Skip to content

Commit

Permalink
fix3.0 fixing 3.0 tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Ran Ziv committed Aug 20, 2014
1 parent ac6d354 commit e7ffbdb
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 70 deletions.
4 changes: 4 additions & 0 deletions hello-world/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
hello-world blueprint
=====================

Cloudify's hello-world blueprint creates a VM on OpenStack and starts an HTTP server using a bash script.
Binary file added hello-world/images/cloudify-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions hello-world/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<html>
<header>
<title>Cloudify Hello World</title>
</header>
<body>
<h1>Hello, World!</h1>
<p>
blueprint_id = {0}<br/>
deployment_id = {1}<br/>
node_id = {2}
</p>
<img src='{3}'>
</body>
</html>
34 changes: 0 additions & 34 deletions hello-world/scripts/configure.sh.orig

This file was deleted.

36 changes: 0 additions & 36 deletions hello-world/scripts/start.sh.orig

This file was deleted.

13 changes: 13 additions & 0 deletions hello-world/scripts/stop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -e

set -e

TEMP_DIR="/tmp"
PYTHON_FILE_SERVER_ROOT=${TEMP_DIR}/python-simple-http-webserver
PID_FILE="server.pid"

PID=`cat ${PYTHON_FILE_SERVER_ROOT}/${PID_FILE}`
echo "Shutting down file server. pid = ${PID}"
kill -9 ${PID} || exit $?
echo "Deleting file server root directory (${PYTHON_FILE_SERVER_ROOT})"
rm -rf ${PYTHON_FILE_SERVER_ROOT}

0 comments on commit e7ffbdb

Please sign in to comment.