diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..715ed1a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM ubuntu:disco + +RUN mkdir /opt/tmserver + +WORKDIR /opt/tmserver + +COPY TrackmaniaServer_2011-02-21.zip /opt/tmserver +RUN apt-get update && apt-get install -y unzip +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/ + +ARG SERVER_NAME='$w$F60DSI-$F90Ankama' +ARG SERVER_DESC='Bienvenue sur le serveur docker Trackmania de la team DSI' +ENV SERVER_NAME $SERVER_NAME +ENV SERVER_DESC $SERVER_DESC + +ENTRYPOINT ["/opt/tmserver/RunTrackmaniaServer.sh"] +CMD [""] + +EXPOSE 5000/tcp +EXPOSE 2350/tcp +EXPOSE 2350/udp +EXPOSE 3450/tcp diff --git a/RunTrackmaniaServer.sh b/RunTrackmaniaServer.sh new file mode 100755 index 0000000..028ef74 --- /dev/null +++ b/RunTrackmaniaServer.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +sed -i "s//${SERVER_NAME}/" /opt/tmserver/GameData/Config/dedicated_cfg.txt +sed -i "s//${SERVER_DESC}/" /opt/tmserver/GameData/Config/dedicated_cfg.txt +cat /opt/tmserver/GameData/Config/dedicated_cfg.txt + +exec ./TrackmaniaServer /dedicated_cfg=dedicated_cfg.txt /game_settings=MatchSettings/custom_game_settings.txt /nodaemon /lan diff --git a/TrackmaniaServer_2011-02-21.zip b/TrackmaniaServer_2011-02-21.zip new file mode 100644 index 0000000..37a131a Binary files /dev/null and b/TrackmaniaServer_2011-02-21.zip differ diff --git a/custom_game_settings.txt b/custom_game_settings.txt new file mode 100644 index 0000000..e5fc67f --- /dev/null +++ b/custom_game_settings.txt @@ -0,0 +1,105 @@ + + + + 1 + 10000 + 1 + 1 + 0 + 0 + 30 + 0 + 0 + 5 + 50 + 6 + 0 + 5 + 180000 + 0 + 3 + 300000 + 100 + 3 + 3 + 2 + + + + 0 + 300000 + 5 + + + + 1 + 1 + 0 + 0 + 1000 + 0 + 0 + + + 0 + + Campaigns\Nations\Blue\C01-Race.Challenge.Gbx + eDgWjoKe2dT3GfoTCGCmI_qMvfk + + + Campaigns\Nations\Blue\C02-Race.Challenge.Gbx + hlRjJEZGm0yr1sT91CtdIwmqsti + + + Campaigns\Nations\Blue\C03-Acrobatic.Challenge.Gbx + c4oQLgleEPkNtehypwdYXTkmVvi + + + Campaigns\Nations\Blue\C04-Race.Challenge.Gbx + yWy7ROt2lgk2zL44HKdBgUjuthi + + + Campaigns\Nations\Blue\C05-Endurance.Challenge.Gbx + UR7xWwTkMeFB2kqVLVVOGDBCKFb + + + Campaigns\Nations\Blue\C06-Speed.Challenge.Gbx + fwj7Gn1nSQ_8qx6MPUtzAfHngTj + + + Campaigns\Nations\Blue\C07-Race.Challenge.Gbx + PLVn84D8NoVGjidP1pLafZP8qA8 + + + Campaigns\Nations\Blue\C08-Obstacle.Challenge.Gbx + Hb_oIOr6Y4_I3aoMogsTPufz8hl + + + Campaigns\Nations\Blue\C09-Race.Challenge.Gbx + 9MOwoNkpYZhw8e99cxFI3hVZrvi + + + Campaigns\Nations\Blue\C10-Acrobatic.Challenge.Gbx + XYiTfAdultrTWVJpjl_Bdnf7x4l + + + Campaigns\Nations\Blue\C11-Race.Challenge.Gbx + npRjhClGPZMs_YK_T5yUrnWY0q9 + + + Campaigns\Nations\Blue\C12-Obstacle.Challenge.Gbx + znbgMZayw8uBByLWqc6kYsEfG6l + + + Campaigns\Nations\Blue\C13-Race.Challenge.Gbx + qxHe8iBNC2soNhkOoOvEKDkxZ58 + + + Campaigns\Nations\Blue\C14-Endurance.Challenge.Gbx + uuGCAivChymPBU6TAHp6qIKSoR4 + + + Campaigns\Nations\Blue\C15-Speed.Challenge.Gbx + n4QZfCzSzwMxsY2ILHFUEEipjtg + +