diff options
author | Mark Beierl <mark.beierl@dell.com> | 2017-07-06 13:55:35 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-07-06 13:55:35 +0000 |
commit | 1d026b94b60937e4bfaad201d8104267efc3fe04 (patch) | |
tree | d472c7dac41e921f82c8d8e47a16a0c4a86316a2 | |
parent | 14026218f7afa5ed10afdf5a438a5a48e48de4cb (diff) | |
parent | d8526cbd2ca9e8c0953d5b62f77457eb57465ca7 (diff) |
Merge "Dockerfile for reporting module updated"
-rw-r--r-- | reporting/docker/Dockerfile | 10 | ||||
-rw-r--r-- | reporting/docker/app.py | 9 | ||||
-rw-r--r-- | reporting/docker/requirements.txt | 1 |
3 files changed, 19 insertions, 1 deletions
diff --git a/reporting/docker/Dockerfile b/reporting/docker/Dockerfile index c748254..541845c 100644 --- a/reporting/docker/Dockerfile +++ b/reporting/docker/Dockerfile @@ -15,7 +15,7 @@ ## -FROM nginx:1.13.1-alpine +FROM alpine:3.1 MAINTAINER Mark Beierl <mark.beierl@dell.com> LABEL version="0.1" description="OPNFV Storperf Reporting Container" @@ -24,3 +24,11 @@ ARG BRANCH=master ENV repos_dir /home/opnfv/repos WORKDIR /home/opnfv +RUN apk add --update python py-pip + +COPY . /app +WORKDIR /app +RUN pip install -r requirements.txt +ENTRYPOINT ["python"] +CMD ["./src/app.py"] +EXPOSE 5000
\ No newline at end of file diff --git a/reporting/docker/app.py b/reporting/docker/app.py new file mode 100644 index 0000000..8f1c058 --- /dev/null +++ b/reporting/docker/app.py @@ -0,0 +1,9 @@ +from flask import Flask +app = Flask(__name__) + +@app.route('/') +def hello_world(): + return 'Hello World' + +if __name__ == '__main__': + app.run(debug=True, host='0.0.0.0', threaded=True) diff --git a/reporting/docker/requirements.txt b/reporting/docker/requirements.txt new file mode 100644 index 0000000..43e625b --- /dev/null +++ b/reporting/docker/requirements.txt @@ -0,0 +1 @@ +Flask==0.12.2
\ No newline at end of file |