tga werke

This commit is contained in:
2020-03-12 11:07:35 +01:00
parent 692c79cefb
commit 49ca01e818
18 changed files with 269 additions and 181 deletions

17
server-b/app.py Normal file
View File

@@ -0,0 +1,17 @@
from flask import Flask
from flask import jsonify
app = Flask(__name__)
@app.route('/')
def doRequest():
data = {
"serverName": "serverB",
"version": "master",
"success": "true"
}
return jsonify(data)
if __name__ == '__main__':
app.run(debug=True, host="0.0.0.0", port=6000)

10
server-b/dockerfile Normal file
View File

@@ -0,0 +1,10 @@
from python:3.7
copy . /app
workdir /app
run pip install -r requirements.txt
expose 6000
entrypoint [ "python" ]
cmd [ "app.py" ]

View File

@@ -0,0 +1 @@
Flask