Init
This commit is contained in:
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@@ -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
|
||||
7
RunTrackmaniaServer.sh
Executable file
7
RunTrackmaniaServer.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
sed -i "s/<name>/<name>${SERVER_NAME}/" /opt/tmserver/GameData/Config/dedicated_cfg.txt
|
||||
sed -i "s/<comment>/<comment>${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
|
||||
BIN
TrackmaniaServer_2011-02-21.zip
Normal file
BIN
TrackmaniaServer_2011-02-21.zip
Normal file
Binary file not shown.
105
custom_game_settings.txt
Normal file
105
custom_game_settings.txt
Normal file
@@ -0,0 +1,105 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<playlist>
|
||||
<gameinfos>
|
||||
<game_mode>1</game_mode>
|
||||
<chat_time>10000</chat_time>
|
||||
<finishtimeout>1</finishtimeout>
|
||||
<allwarmupduration>1</allwarmupduration>
|
||||
<disablerespawn>0</disablerespawn>
|
||||
<forceshowallopponents>0</forceshowallopponents>
|
||||
<rounds_pointslimit>30</rounds_pointslimit>
|
||||
<rounds_usenewrules>0</rounds_usenewrules>
|
||||
<rounds_forcedlaps>0</rounds_forcedlaps>
|
||||
<rounds_pointslimitnewrules>5</rounds_pointslimitnewrules>
|
||||
<team_pointslimit>50</team_pointslimit>
|
||||
<team_maxpoints>6</team_maxpoints>
|
||||
<team_usenewrules>0</team_usenewrules>
|
||||
<team_pointslimitnewrules>5</team_pointslimitnewrules>
|
||||
<timeattack_limit>180000</timeattack_limit>
|
||||
<timeattack_synchstartperiod>0</timeattack_synchstartperiod>
|
||||
<laps_nblaps>3</laps_nblaps>
|
||||
<laps_timelimit>300000</laps_timelimit>
|
||||
<cup_pointslimit>100</cup_pointslimit>
|
||||
<cup_roundsperchallenge>3</cup_roundsperchallenge>
|
||||
<cup_nbwinners>3</cup_nbwinners>
|
||||
<cup_warmupduration>2</cup_warmupduration>
|
||||
</gameinfos>
|
||||
|
||||
<hotseat>
|
||||
<game_mode>0</game_mode>
|
||||
<time_limit>300000</time_limit>
|
||||
<rounds_count>5</rounds_count>
|
||||
</hotseat>
|
||||
|
||||
<filter>
|
||||
<is_lan>1</is_lan>
|
||||
<is_internet>1</is_internet>
|
||||
<is_solo>0</is_solo>
|
||||
<is_hotseat>0</is_hotseat>
|
||||
<sort_index>1000</sort_index>
|
||||
<random_map_order>0</random_map_order>
|
||||
<force_default_gamemode>0</force_default_gamemode>
|
||||
</filter>
|
||||
|
||||
<startindex>0</startindex>
|
||||
<challenge>
|
||||
<file>Campaigns\Nations\Blue\C01-Race.Challenge.Gbx</file>
|
||||
<ident>eDgWjoKe2dT3GfoTCGCmI_qMvfk</ident>
|
||||
</challenge>
|
||||
<challenge>
|
||||
<file>Campaigns\Nations\Blue\C02-Race.Challenge.Gbx</file>
|
||||
<ident>hlRjJEZGm0yr1sT91CtdIwmqsti</ident>
|
||||
</challenge>
|
||||
<challenge>
|
||||
<file>Campaigns\Nations\Blue\C03-Acrobatic.Challenge.Gbx</file>
|
||||
<ident>c4oQLgleEPkNtehypwdYXTkmVvi</ident>
|
||||
</challenge>
|
||||
<challenge>
|
||||
<file>Campaigns\Nations\Blue\C04-Race.Challenge.Gbx</file>
|
||||
<ident>yWy7ROt2lgk2zL44HKdBgUjuthi</ident>
|
||||
</challenge>
|
||||
<challenge>
|
||||
<file>Campaigns\Nations\Blue\C05-Endurance.Challenge.Gbx</file>
|
||||
<ident>UR7xWwTkMeFB2kqVLVVOGDBCKFb</ident>
|
||||
</challenge>
|
||||
<challenge>
|
||||
<file>Campaigns\Nations\Blue\C06-Speed.Challenge.Gbx</file>
|
||||
<ident>fwj7Gn1nSQ_8qx6MPUtzAfHngTj</ident>
|
||||
</challenge>
|
||||
<challenge>
|
||||
<file>Campaigns\Nations\Blue\C07-Race.Challenge.Gbx</file>
|
||||
<ident>PLVn84D8NoVGjidP1pLafZP8qA8</ident>
|
||||
</challenge>
|
||||
<challenge>
|
||||
<file>Campaigns\Nations\Blue\C08-Obstacle.Challenge.Gbx</file>
|
||||
<ident>Hb_oIOr6Y4_I3aoMogsTPufz8hl</ident>
|
||||
</challenge>
|
||||
<challenge>
|
||||
<file>Campaigns\Nations\Blue\C09-Race.Challenge.Gbx</file>
|
||||
<ident>9MOwoNkpYZhw8e99cxFI3hVZrvi</ident>
|
||||
</challenge>
|
||||
<challenge>
|
||||
<file>Campaigns\Nations\Blue\C10-Acrobatic.Challenge.Gbx</file>
|
||||
<ident>XYiTfAdultrTWVJpjl_Bdnf7x4l</ident>
|
||||
</challenge>
|
||||
<challenge>
|
||||
<file>Campaigns\Nations\Blue\C11-Race.Challenge.Gbx</file>
|
||||
<ident>npRjhClGPZMs_YK_T5yUrnWY0q9</ident>
|
||||
</challenge>
|
||||
<challenge>
|
||||
<file>Campaigns\Nations\Blue\C12-Obstacle.Challenge.Gbx</file>
|
||||
<ident>znbgMZayw8uBByLWqc6kYsEfG6l</ident>
|
||||
</challenge>
|
||||
<challenge>
|
||||
<file>Campaigns\Nations\Blue\C13-Race.Challenge.Gbx</file>
|
||||
<ident>qxHe8iBNC2soNhkOoOvEKDkxZ58</ident>
|
||||
</challenge>
|
||||
<challenge>
|
||||
<file>Campaigns\Nations\Blue\C14-Endurance.Challenge.Gbx</file>
|
||||
<ident>uuGCAivChymPBU6TAHp6qIKSoR4</ident>
|
||||
</challenge>
|
||||
<challenge>
|
||||
<file>Campaigns\Nations\Blue\C15-Speed.Challenge.Gbx</file>
|
||||
<ident>n4QZfCzSzwMxsY2ILHFUEEipjtg</ident>
|
||||
</challenge>
|
||||
</playlist>
|
||||
Reference in New Issue
Block a user