kutyla-philipp / mfbot-docker

A bot for the Free-To-Play game "Shakes and Fidget" :)
6 stars 5 forks source link

Add support for the new 5.x webinterface #3

Open Roemer opened 6 years ago

Roemer commented 6 years ago

In 5.0 there is also a python webinterface available to control the mfbot console application. Either create a companion image with that webinterface which connects to the normal mfbot container or directly embedd this webinterface into mfbot and make it activatable/deactivatable.

I already played around a bit and my current (experimental) companion images Dockerfile looks like this:

FROM python:3.6.6-stretch

ENV SFHOST http://127.0.0.1:1024
ENV SFHOSTUSR admin
ENV SFHOSTPWD admin
ENV WEBUSR Test
ENV WEBPWD 1234

RUN apt-get update && \
    apt-get install -y unzip

WORKDIR /usr/src/app

RUN wget https://www.mfbot.de/Download/v5.0.0.4/mfbot-webinterface.zip && \
    unzip -q mfbot-webinterface.zip && \
    rm mfbot-webinterface.zip && \
    pip install --no-cache-dir -r requirements.txt

CMD python ./MainProgram.py -a ${SFHOST} --remoteU=${SFHOSTUSR} --remoteP=${SFHOSTPWD} --webU=${WEBUSR} --webP=${WEBPWD}
MrLoLf commented 1 year ago

This project is already doing this MFBotDocker.