summaryrefslogtreecommitdiff
path: root/test/compose/env_and_volume/write/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/compose/env_and_volume/write/app.py')
-rw-r--r--test/compose/env_and_volume/write/app.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/compose/env_and_volume/write/app.py b/test/compose/env_and_volume/write/app.py
new file mode 100644
index 000000000..b6ad6fe63
--- /dev/null
+++ b/test/compose/env_and_volume/write/app.py
@@ -0,0 +1,13 @@
+from flask import Flask
+import os
+app = Flask(__name__)
+
+@app.route('/')
+def hello():
+ f = open("/data/message", "w")
+ f.write(os.getenv("PODMAN_MSG"))
+ f.close()
+ return "done"
+
+if __name__ == '__main__':
+ app.run(host='0.0.0.0')