submodule en src

This commit is contained in:
2020-03-16 12:14:50 +01:00
parent 9c59f162bf
commit cf13c06ba8
7 changed files with 33 additions and 0 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "infra"]
path = infra
url = https://github.com/beppevanrolleghem/stage-infra

1
infra Submodule

Submodule infra added at e05b588517

17
src/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
src/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" ]

1
src/requirements.txt Normal file
View File

@@ -0,0 +1 @@
Flask

1
stage-infra Submodule

Submodule stage-infra added at 7938666913