submodule en src

This commit is contained in:
2020-03-16 12:16:22 +01:00
parent a75fb5c9ed
commit a22876ca30
6 changed files with 44 additions and 0 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

24
src/app.py Normal file
View File

@@ -0,0 +1,24 @@
from flask import Flask
from flask import jsonify
app = Flask(__name__)
requ = ""
@app.route('/', defaults={'path': ''})
@app.route('/<path:path>')
def doRequest(path):
requ = +path + ' \n'
with open("test.txt", "a") as myfile:
myfile.write(requ)
return "None"
@app.route('/server-d/get')
def get():
with open("test.txt", "r") as infile:
return 'we have something: ' + '\n '.join(infile.readlines())
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 7000
entrypoint [ "python" ]
cmd [ "app.py" ]

1
src/readme.md Normal file
View File

@@ -0,0 +1 @@
dees is de mirror server

1
src/requirements.txt Normal file
View File

@@ -0,0 +1 @@
Flask

8
src/test.txt Normal file
View File

@@ -0,0 +1,8 @@
another request
another request
another request
another request
another request favicon.ico
another request
another request server-a
another request favicon.ico