diff --git a/AdminServ_v2.1.1.zip b/AdminServ_v2.1.1.zip new file mode 100755 index 0000000..3cfd531 Binary files /dev/null and b/AdminServ_v2.1.1.zip differ diff --git a/Dockerfile b/Dockerfile index 200375e..c62e31f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,12 @@ RUN unzip /opt/tmserver/TrackmaniaServer_2011-02-21.zip -d /opt/tmserver COPY custom_game_settings.txt /opt/tmserver/GameData/Tracks/MatchSettings/ COPY RunTrackmaniaServer.sh /opt/tmserver/ +RUN apt-get -y install apache2 php php-zip php-xml +COPY AdminServ_v2.1.1.zip /var/www/html +RUN unzip /var/www/html/AdminServ_v2.1.1.zip -d /var/www/html +RUN chmod -R 777 /var/www/html/ +RUN rm -f /var/www/html/index.html + ARG SERVER_NAME='Trackmania Server' ARG SERVER_DESC='This is a Trackmania Server' ARG SERVER_SA_PASSWORD='SuperAdmin' @@ -23,5 +29,6 @@ EXPOSE 5000/tcp EXPOSE 2350/tcp EXPOSE 2350/udp EXPOSE 3450/tcp +EXPOSE 80/tcp CMD ["/opt/tmserver/RunTrackmaniaServer.sh"] diff --git a/README.md b/README.md index e2295b8..77e18ca 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,50 @@ # tmserver-docker + Trackmania Nation Forever Docker Server You can find it on Docker Hub [lduriez/tmserver](https://hub.docker.com/r/lduriez/tmserver) Only lan dedicated is enable (internet dedicated will be added in future version) -## Exposed ports : +Server management webui provided base on [AdminServ](https://github.com/Chris92de/AdminServ) + +## Exposed ports + * 2350/tcp game server port * 2350/udp game server port * 3450/tcp p2p game server port * 5000/tcp xmlrpc remote control port +* 443/tcp server management webui port + +## Environment variables -## Environment variables : * SERVER_NAME name of your server (default is 'Trackmania Server') * SERVER_DESC description of your server (default is 'This is a Trackmania Server') * SERVER_SA_PASSWORD superadmin management password (default is 'SuperAdmin') * SERVER_ADM_PASSWORD admin management password (default is 'Admin') + +## Commit convention + +Format : `(): ` + +### type + +* `build` : changements qui affectent le système de build ou des dépendances externes (npm, make…) +* `ci` : changements concernant les fichiers et scripts d’intégration ou de configuration (Travis, Ansible, BrowserStack…) +* `feat` : ajout d’une nouvelle fonctionnalité +* `fix` : correction d’un bug +* `perf` : amélioration des performances +* `refactor` : modification qui n’apporte ni nouvelle fonctionnalité ni d’amélioration de performances +* `style` : changement qui n’apporte aucune altération fonctionnelle ou sémantique (indentation, mise en forme, ajout d’espace, renommante d’une variable…) +* `docs` : rédaction ou mise à jour de documentation +* `test` : ajout ou modification de tests +* `revert` : annuler un précédent commit, forme `revert sujet du commit annulé hash du commit annulé` + +### sujet + +* `add` +* `change` +* `update` +* `remove` + +[source](https://buzut.net/git-bien-nommer-ses-commits/) \ No newline at end of file diff --git a/RunTrackmaniaServer.sh b/RunTrackmaniaServer.sh index 3396ff9..8e87c8a 100755 --- a/RunTrackmaniaServer.sh +++ b/RunTrackmaniaServer.sh @@ -1,5 +1,8 @@ #!/bin/sh +echo "Starting apache server" +service apache2 start + echo "Setting ENV/ARG variables" sed -i "s/SuperAdmin/${SERVER_SA_PASSWORD}/" /opt/tmserver/GameData/Config/dedicated_cfg.txt sed -i "s/Admin/${SERVER_ADM_PASSWORD}/" /opt/tmserver/GameData/Config/dedicated_cfg.txt