Commit fe0c79f2 authored by Nane Kratzke's avatar Nane Kratzke
Browse files

update hiphop

parent 95e81420
......@@ -6,7 +6,6 @@ WORKDIR /app
RUN apk update && apk upgrade && apk add --no-cache bash git openssh
RUN pip3 install -r requirements.txt
ENV FLASK_APP=service.py
EXPOSE 80
ENTRYPOINT ["flask", "run", "--host=0.0.0.0", "--port=80"]
ENTRYPOINT ["python3", "-u", "service.py"]
......@@ -32,10 +32,14 @@ def index():
@app.route('/hip')
def hip():
r = None
r = ""
try:
r = requests.get(f"http://{service}-{tier + 1}", allow_redirects=True)
print(r)
r = r.content
except Exception as ex:
print(ex)
return f"hw hop-{ tier }{ r.content }"
r = " -> END"
return f"hop-{ tier }{ r }"
app.run(host="0.0.0.0", port=80)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment