mirror of
https://github.com/bvanroll/cicdTest.git
synced 2025-08-29 12:02:47 +00:00
tga werke
This commit is contained in:
24
server-d/app.py
Normal file
24
server-d/app.py
Normal 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
server-d/dockerfile
Normal file
10
server-d/dockerfile
Normal 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
server-d/readme.md
Normal file
1
server-d/readme.md
Normal file
@@ -0,0 +1 @@
|
||||
dees is de mirror server
|
1
server-d/requirements.txt
Normal file
1
server-d/requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
Flask
|
8
server-d/test.txt
Normal file
8
server-d/test.txt
Normal 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
|
Reference in New Issue
Block a user