diff options
author | baude <bbaude@redhat.com> | 2020-12-02 08:45:08 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2020-12-11 09:26:29 -0600 |
commit | 82d7b9f2e21c93cfb12c8f199284c38f3e858280 (patch) | |
tree | 36eefabbfce3167093c9a49ea20e9050a70cb483 /test/compose/env_and_volume/read | |
parent | 47af0afbd15b074561d98a117be353301a354e85 (diff) | |
download | podman-82d7b9f2e21c93cfb12c8f199284c38f3e858280.tar.gz podman-82d7b9f2e21c93cfb12c8f199284c38f3e858280.tar.bz2 podman-82d7b9f2e21c93cfb12c8f199284c38f3e858280.zip |
add compose regression to ci
to prevent any regressions, we should be running regression tests using
compose.
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'test/compose/env_and_volume/read')
-rw-r--r-- | test/compose/env_and_volume/read/Dockerfile | 5 | ||||
-rw-r--r-- | test/compose/env_and_volume/read/app.py | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/compose/env_and_volume/read/Dockerfile b/test/compose/env_and_volume/read/Dockerfile new file mode 100644 index 000000000..a393a0dcb --- /dev/null +++ b/test/compose/env_and_volume/read/Dockerfile @@ -0,0 +1,5 @@ +FROM podman_python +WORKDIR /app +COPY . /app +ENTRYPOINT ["python3"] +CMD ["app.py"] diff --git a/test/compose/env_and_volume/read/app.py b/test/compose/env_and_volume/read/app.py new file mode 100644 index 000000000..71fbbb26a --- /dev/null +++ b/test/compose/env_and_volume/read/app.py @@ -0,0 +1,10 @@ +from flask import Flask +app = Flask(__name__) + +@app.route('/') +def hello(): + f = open("/data/message", "r") + return f.read() + +if __name__ == '__main__': + app.run(host='0.0.0.0') |