build test

This commit is contained in:
2020-02-18 09:57:39 +01:00
parent e50061cdec
commit e64a0f080e
331 changed files with 93926 additions and 1 deletions

15
serverA/__init__.py Normal file
View File

@@ -0,0 +1,15 @@
from flask import Flask
import requests
app = Flask(__name__)
URL = "http://service"
@app.route('/')
def doRequest():
return requests.get(URL).json()
if __name__ == '__main__':
app.run(debug=True, host="0.0.0.0")

10
serverA/dockerfile Normal file
View File

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

2
serverA/requirements.txt Normal file
View File

@@ -0,0 +1,2 @@
Flask
requests