summaryrefslogtreecommitdiff
path: root/test/compose/simple_port_map
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2020-12-02 08:45:08 -0600
committerbaude <bbaude@redhat.com>2020-12-11 09:26:29 -0600
commit82d7b9f2e21c93cfb12c8f199284c38f3e858280 (patch)
tree36eefabbfce3167093c9a49ea20e9050a70cb483 /test/compose/simple_port_map
parent47af0afbd15b074561d98a117be353301a354e85 (diff)
downloadpodman-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/simple_port_map')
-rw-r--r--test/compose/simple_port_map/docker-compose.yml6
-rw-r--r--test/compose/simple_port_map/frontend/Dockerfile6
-rw-r--r--test/compose/simple_port_map/frontend/app.py9
3 files changed, 21 insertions, 0 deletions
diff --git a/test/compose/simple_port_map/docker-compose.yml b/test/compose/simple_port_map/docker-compose.yml
new file mode 100644
index 000000000..e7eab1047
--- /dev/null
+++ b/test/compose/simple_port_map/docker-compose.yml
@@ -0,0 +1,6 @@
+version: '3'
+services:
+ web:
+ build: frontend
+ ports:
+ - '5000:5000'
diff --git a/test/compose/simple_port_map/frontend/Dockerfile b/test/compose/simple_port_map/frontend/Dockerfile
new file mode 100644
index 000000000..2595828ff
--- /dev/null
+++ b/test/compose/simple_port_map/frontend/Dockerfile
@@ -0,0 +1,6 @@
+FROM alpine
+WORKDIR /app
+RUN apk update && apk add py3-pip && pip3 install flask
+COPY . /app
+ENTRYPOINT ["python3"]
+CMD ["app.py"]
diff --git a/test/compose/simple_port_map/frontend/app.py b/test/compose/simple_port_map/frontend/app.py
new file mode 100644
index 000000000..895556a89
--- /dev/null
+++ b/test/compose/simple_port_map/frontend/app.py
@@ -0,0 +1,9 @@
+from flask import Flask
+app = Flask(__name__)
+
+@app.route('/')
+def hello():
+ return "Podman rulez!"
+
+if __name__ == '__main__':
+ app.run(host='0.0.0.0')