automated terminal push
This commit is contained in:
20
app.py
20
app.py
@@ -2,9 +2,27 @@ from flask import Flask, jsonify
|
|||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
@app.route('/')
|
||||||
|
def home():
|
||||||
|
return jsonify({
|
||||||
|
"service": "nvhi-atsila-microservice",
|
||||||
|
"status": "running",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"message": "Cherokee Four-Fire Microservice - Enterprise DevOps Demo"
|
||||||
|
})
|
||||||
|
|
||||||
@app.route('/health')
|
@app.route('/health')
|
||||||
def health():
|
def health():
|
||||||
return jsonify(status='OK')
|
return jsonify(status='OK')
|
||||||
|
|
||||||
|
@app.route('/api/info')
|
||||||
|
def info():
|
||||||
|
return jsonify({
|
||||||
|
"service": "nvhi-atsila-microservice",
|
||||||
|
"environment": "production",
|
||||||
|
"architecture": "AWS ECS Fargate",
|
||||||
|
"deployment": "Blue-Green via Jenkins CI/CD"
|
||||||
|
})
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(host='0.0.0.0', port=8080)
|
app.run(host='0.0.0.0', port=8080)
|
||||||
Reference in New Issue
Block a user