das ist doch alles quatsch
This commit is contained in:
		
							parent
							
								
									8f309310eb
								
							
						
					
					
						commit
						cd8b18e088
					
				
					 9 changed files with 5652 additions and 45 deletions
				
			
		
							
								
								
									
										18
									
								
								Dockerfile
									
										
									
									
									
								
							
							
						
						
									
										18
									
								
								Dockerfile
									
										
									
									
									
								
							| 
						 | 
					@ -1,18 +0,0 @@
 | 
				
			||||||
FROM ubuntu:latest
 | 
					 | 
				
			||||||
LABEL maintainer="Alpha"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
ENV DEBIAN_FRONTEND noninteractive
 | 
					 | 
				
			||||||
ENV DEBCONF_NONINTERACTIVE_SEEN true
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
RUN apt-get update && \
 | 
					 | 
				
			||||||
	apt-get install -y wget mono-runtime libsqlite3-dev screen && \
 | 
					 | 
				
			||||||
	mkdir /mfbot
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
COPY dockerrun.sh /
 | 
					 | 
				
			||||||
COPY download.sh /
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
RUN chmod a+x /dockerrun.sh
 | 
					 | 
				
			||||||
RUN chmod a+x /download.sh
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
ENTRYPOINT ["/dockerrun.sh]
 | 
					 | 
				
			||||||
							
								
								
									
										12
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								README.md
									
										
									
									
									
								
							| 
						 | 
					@ -1,5 +1,9 @@
 | 
				
			||||||
# MFBot-Docker
 | 
					# MFBot-Docker *not working*
 | 
				
			||||||
MF-Bot:
 | 
					 | 
				
			||||||
https://www.mfbot.de/downloads/
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
https://www.mfbot.de/Download/latest/MFBot_Konsole_x86_64
 | 
					??? https://www.mfbot.de/
 | 
				
			||||||
 | 
					können die überhaupt programmieren
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					To run use:
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					docker-compose up
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
							
								
								
									
										36
									
								
								docker-compose.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								docker-compose.yaml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,36 @@
 | 
				
			||||||
 | 
					version: '3'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					services:
 | 
				
			||||||
 | 
					  mfbot:
 | 
				
			||||||
 | 
					    build: ./mfbot
 | 
				
			||||||
 | 
					    container_name: mfbot
 | 
				
			||||||
 | 
					    restart: always
 | 
				
			||||||
 | 
					    networks:
 | 
				
			||||||
 | 
					      - mfnetwork
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					      - botdata:/bot
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  webinterface:
 | 
				
			||||||
 | 
					    build: ./webinterface
 | 
				
			||||||
 | 
					    container_name: webinterface
 | 
				
			||||||
 | 
					    restart: always
 | 
				
			||||||
 | 
					    ports:
 | 
				
			||||||
 | 
					      - 8050:8050
 | 
				
			||||||
 | 
					    depends_on:
 | 
				
			||||||
 | 
					      - mfbot
 | 
				
			||||||
 | 
					    networks:
 | 
				
			||||||
 | 
					      - mfnetwork
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      BOT_IP: mfbot
 | 
				
			||||||
 | 
					      BOT_PORT: 1029
 | 
				
			||||||
 | 
					      BOT_USERNAME: admin
 | 
				
			||||||
 | 
					      BOT_PASSWORD: admin
 | 
				
			||||||
 | 
					      WEB_USERNAME: admin
 | 
				
			||||||
 | 
					      WEB_PASSWORD: admin
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					networks:
 | 
				
			||||||
 | 
					  mfnetwork:
 | 
				
			||||||
 | 
					    driver: bridge
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					volumes:
 | 
				
			||||||
 | 
					  botdata:
 | 
				
			||||||
							
								
								
									
										18
									
								
								dockerrun.sh
									
										
									
									
									
								
							
							
						
						
									
										18
									
								
								dockerrun.sh
									
										
									
									
									
								
							| 
						 | 
					@ -1,18 +0,0 @@
 | 
				
			||||||
#!/bin/bash
 | 
					 | 
				
			||||||
file="MFBot_Konsole_x86_64"
 | 
					 | 
				
			||||||
if [ -f "$file" ]
 | 
					 | 
				
			||||||
then
 | 
					 | 
				
			||||||
	echo "$file found."
 | 
					 | 
				
			||||||
else
 | 
					 | 
				
			||||||
	echo "$file not found. Nachladen"
 | 
					 | 
				
			||||||
	sh ./download.sh
 | 
					 | 
				
			||||||
    
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
cd /mfbot
 | 
					 | 
				
			||||||
screen -A -m -d -S mfbot ./$file
 | 
					 | 
				
			||||||
while [ ! -f /mfbot/logs/General.log ] ;
 | 
					 | 
				
			||||||
do
 | 
					 | 
				
			||||||
      sleep 1
 | 
					 | 
				
			||||||
done
 | 
					 | 
				
			||||||
sleep 5
 | 
					 | 
				
			||||||
tail -f /mfbot/logs/*
 | 
					 | 
				
			||||||
| 
						 | 
					@ -1,5 +0,0 @@
 | 
				
			||||||
#!/bin/bash
 | 
					 | 
				
			||||||
cd /
 | 
					 | 
				
			||||||
wget https://www.mfbot.de/Download/latest/MFBot_Konsole_x86_64
 | 
					 | 
				
			||||||
chmod a+x MFBot_Konsole_x86_64
 | 
					 | 
				
			||||||
ln -sf /MFBot_Konsole_x86_64 /mfbot/MFBot_Konsole_x86_64
 | 
					 | 
				
			||||||
							
								
								
									
										5576
									
								
								mfbot/Acc.ini
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5576
									
								
								mfbot/Acc.ini
									
										
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							
							
								
								
									
										5
									
								
								mfbot/Dockerfile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								mfbot/Dockerfile
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,5 @@
 | 
				
			||||||
 | 
					FROM mono
 | 
				
			||||||
 | 
					LABEL maintainer="Alpha"
 | 
				
			||||||
 | 
					WORKDIR /
 | 
				
			||||||
 | 
					COPY . .
 | 
				
			||||||
 | 
					CMD [ "mono",  "./mfbot.exe" ]
 | 
				
			||||||
							
								
								
									
										
											BIN
										
									
								
								mfbot/mfbot.exe
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								mfbot/mfbot.exe
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										27
									
								
								webinterface/Dockerfile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								webinterface/Dockerfile
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,27 @@
 | 
				
			||||||
 | 
					FROM python:3.6.9-slim-buster
 | 
				
			||||||
 | 
					LABEL maintainer="Alpha"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ENV BOT_IP="127.0.0.1"
 | 
				
			||||||
 | 
					ENV BOT_PORT="1029"
 | 
				
			||||||
 | 
					ENV BOT_USERNAME="admin"
 | 
				
			||||||
 | 
					ENV BOT_PASSWORD="admin"
 | 
				
			||||||
 | 
					ENV WEB_USERNAME="admin"
 | 
				
			||||||
 | 
					ENV WEB_PASSWORD="admin"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RUN apt-get update && apt-get upgrade
 | 
				
			||||||
 | 
					RUN apt-get -y install libcurl4-gnutls-dev
 | 
				
			||||||
 | 
					RUN apt-get clean
 | 
				
			||||||
 | 
					RUN apt-get autoclean 
 | 
				
			||||||
 | 
					RUN apt-get -y install libcurl4-openssl-dev
 | 
				
			||||||
 | 
					RUN apt-get -y install wget unzip build-essential libcurl4-openssl-dev libssl-dev librtmp-dev default-libmysqlclient-dev tk-dev libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev
 | 
				
			||||||
 | 
					RUN pip3.6 install --upgrade pip setuptools
 | 
				
			||||||
 | 
					RUN mkdir web
 | 
				
			||||||
 | 
					WORKDIR /web
 | 
				
			||||||
 | 
					RUN wget https://www.mfbot.de/Download/v5.0.0.4/mfbot-webinterface.zip
 | 
				
			||||||
 | 
					RUN unzip mfbot-webinterface.zip
 | 
				
			||||||
 | 
					RUN rm mfbot-webinterface.zip
 | 
				
			||||||
 | 
					RUN pip3.6 install -r requirements.txt
 | 
				
			||||||
 | 
					RUN pip3.6 install dash==0.23.1
 | 
				
			||||||
 | 
					EXPOSE 8050
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CMD ["python3.6", "MainProgram.py", "-a", "http://${BOT_IP}:${BOT_PORT}/", "--remoteU=${BOT_USERNAME}", "--remoteP=${BOT_PASSWORD}", "--webU=${WEB_USERNAME}", "--webP=${WEB_PASSWORD}"]
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue