Täältä suoraan levykuvat: http://88.114.1.82:3000/RikuSi/docker_ProPilkki2_server
Muokkaa autohost.ini, autoscript.txt, pp2host.conf-tiedostoja haluamaksesi.
autohost.ini
/players 31 /autohost on /lures all /wait 60 /autoscript off
autoscript.txt
/autohost on /results 10 /lures all /wait 30 /lake Haapolahti,3,3,3 /game 1,1 /hello Haapolahti #go back to start /autoscript on
Dockerfile
FROM ubuntu:latest MAINTAINER Riku Silvennoinen RUN apt-get update RUN apt-get install -y wget nano gnupg RUN wget -O - http://procyon.ddns.net:8080/propilkki_pub.gpg.key | apt-key add - RUN echo "deb http://procyon.ddns.net:8080/repos/apt/ubuntu focal main" | tee -a /etc/apt/sources.list RUN apt-get update RUN apt-get install pp2host COPY pp2host.conf /etc/pp2host/pp2host.conf COPY autoscript.txt /etc/pp2host/static/autoscript.txt COPY autohost.ini /etc/pp2host/static/autohost.ini CMD ["sh", "-c", "service pp2host start && tail -f /dev/null"]
Dockerfile Raspberry Pi 3:lle
FROM balenalib/raspberry-pi-debian:latest MAINTAINER Riku Silvennoinen RUN apt-get update RUN apt-get install -y wget nano gnupg RUN wget -O - http://procyon.ddns.net:8080/propilkki_pub.gpg.key | apt-key add - RUN echo "deb http://procyon.ddns.net:8080/repos/apt/debian jessie main" | tee -a /etc/apt/sources.list RUN apt-get update RUN apt-get upgrade -y RUN apt-get install pp2host COPY pp2host.conf /etc/pp2host/pp2host.conf COPY autoscript.txt /etc/pp2host/static/autoscript.txt COPY autohost.ini /etc/pp2host/static/autohost.ini CMD ["sh", "-c", "service pp2host start && tail -f /dev/null"]
pp2host.conf
# ---------------------------------------------------------- # Pro Pilkki 2 host damon configuration file (pp2host.conf) # (C) Copyright Procyon Products # ---------------------------------------------------------- # System user account to run the daemon DAEMON_USER=root # Network port NETWORK_PORT=4500 # List game to public hostlist PUBLIC=yes # Show game in public hostlist web page (game must also be public) PUBLIC_WEB=yes # Game hello text, visible on public host list HELLO="HELLO" # Password for accessing the game GAME_PASSWORD="" # Password for controlling the game via web browser or in-game chat ADMIN_PASSWORD="password" # Password for controlling the game as a host via web browser HOST_PASSWORD="password" # Host player name PLAYER_NAME="Fisherman" # Host nationality PLAYER_NATION="FIN" # Network records account e-mail (trusted host) REC_MAIL="" # Network records password (trusted host) REC_PASSWORD="password" # Minumum client version allowed to enter game MIN_CLIENT_VER="" # Maximum client version allowed to enter game MAX_CLIENT_VER=""
Tee kontti:
sudo docker build -t pilkki-image .
Aja kontti:
sudo docker run -it --name pilkki -p 4500:4500 -d pilkki-image
Komentorivi, jos tarvitset:
sudo docker exec -it pilkki /bin/bash
Pysäyttää kontin:
sudo docker stop pilkki
Käynnistä kontti uudelleen:
sudo docker start pilkki
Käynnistä kontti automaattisesti:
sudo docker update --restart unless-stopped pilkki