Fixed: Python Bug

This commit is contained in:
TheJoKlLa 2023-02-07 04:38:42 +01:00
parent 7469a62eff
commit bdf4c56f0b
2 changed files with 5 additions and 3 deletions

View File

@ -1,13 +1,15 @@
FROM python:3.10.4-bullseye
WORKDIR /app
COPY . .
COPY requirements.txt requirements.txt
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y cmake capnproto clang gcc build-essential
COPY . .
RUN pip3 install -r requirements.txt
EXPOSE 9877
VOLUME /app/config
CMD [ "python3", "main.py"]
EXPOSE 9877

View File

@ -29,7 +29,7 @@ async def main():
bffh_user = str(os.getenv("BFFH_USER", "Admin1"))
bffh_password = str(os.getenv("BFFH_PASSWORD", "secret"))
await aio.web.start_http_server(addr="localhost", port=exporter_port)
await aio.web.start_http_server(addr="0.0.0.0", port=exporter_port)
metriclist = {}
session = await pyfabapi.fabapi.connect(bffh_host, bffh_port, bffh_user, bffh_password)