mirror of
https://github.com/bvanroll/cicdTest.git
synced 2025-08-29 20:12:43 +00:00
build test
This commit is contained in:
16
serverB/__init__.py
Normal file
16
serverB/__init__.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from flask import Flask
|
||||
from flask import jsonify
|
||||
app = Flask(__name__)
|
||||
|
||||
|
||||
@app.route('/')
|
||||
def doRequest():
|
||||
data = {
|
||||
"serverName": "serverB",
|
||||
"success": "true"
|
||||
}
|
||||
return jsonify(data)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(debug=True, host="0.0.0.0")
|
10
serverB/dockerfile
Normal file
10
serverB/dockerfile
Normal 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" ]
|
1
serverB/requirements.txt
Normal file
1
serverB/requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
Flask
|
Reference in New Issue
Block a user