Skip to content
Snippets Groups Projects
Commit 5163f14a authored by nimrod's avatar nimrod
Browse files

Dummy web server.

parent 18ae45e4
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,6 @@ repos:
rev: 19.10b0
hooks:
- id: black
exclude: &excluded_pythonscripts pythonrc.py|rabbitmqadmin
args:
- |
--line-length=79
......@@ -33,7 +32,6 @@ repos:
rev: 3.7.9
hooks:
- id: flake8
exclude: *excluded_pythonscripts
args:
- |-
--max-line-length=79
......@@ -43,10 +41,9 @@ repos:
rev: v2.4.4
hooks:
- id: pylint
exclude: *excluded_pythonscripts
args:
- |-
--disable=R0801
--disable=R0801,E0401
- repo: https://www.shore.co.il/git/docker-pre-commit
rev: v0.3.0
hooks:
......
......@@ -14,3 +14,13 @@ services:
image: rabbitmq:3.8-management-alpine
ports:
- 15672:15672
server:
build:
context: ./
command: ["flask", "run", "--port", "8080", "--host", "0.0.0.0"]
environment:
FLASK_APP: waldorf/server
healthcheck:
test: ["CMD-SHELL", "wget http://localhost:8080/ping || exit 1"]
ports:
- 8080:8080
"""Dummy web server using Flask."""
from flask import Flask
app = Flask(__name__) # pylint: disable=invalid-name
@app.route("/ping")
def ping():
"""Healthcheck."""
return "pong"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment