From 4f149d541c90f8dbf788f0fe045d14820e6f35e6 Mon Sep 17 00:00:00 2001 From: sro Date: Mon, 19 Mar 2018 16:53:49 +0100 Subject: [PATCH] new app added --- DockerFile => DockerFile_old | 0 Dockerfile | 7 +++++++ app.py | 11 +++++++++++ requirements.txt | 4 +--- run.sh | 5 +++++ 5 files changed, 24 insertions(+), 3 deletions(-) rename DockerFile => DockerFile_old (100%) create mode 100644 Dockerfile create mode 100644 app.py mode change 100755 => 100644 requirements.txt create mode 100644 run.sh diff --git a/DockerFile b/DockerFile_old similarity index 100% rename from DockerFile rename to DockerFile_old diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a541672 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM python:2.7 +MAINTAINER Rowshan Jahan Sathi "sathi@tu-berlin.de" +COPY . /app +WORKDIR /app +RUN pip install -r requirements.txt +ENTRYPOINT ["python"] +CMD ["app.py"] \ No newline at end of file diff --git a/app.py b/app.py new file mode 100644 index 0000000..ee36600 --- /dev/null +++ b/app.py @@ -0,0 +1,11 @@ +from flask import Flask + +app = Flask(__name__) + +@app.route("/") +def hello(): + return "Hello World Test!!" + + +if __name__ == "__main__": + app.run(debug=True,host='0.0.0.0') \ No newline at end of file diff --git a/requirements.txt b/requirements.txt old mode 100755 new mode 100644 index 5b64fd8..8ab6294 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1 @@ -selenium -requests -setuptools \ No newline at end of file +flask \ No newline at end of file diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..d38dd10 --- /dev/null +++ b/run.sh @@ -0,0 +1,5 @@ +#!/bin/bash +#build the docker image +docker build -t rowshan/eds_e2e +#Run the test_app image container +docker run -d -p 5000:5000 rowshan/eds_e2e \ No newline at end of file