-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 10ec7a4
Showing
7 changed files
with
172 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
serverconfig.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
docker run -d -p 8080:8080 -p 8081:8081 -p 26900:26900 -p 26901:26901 -p 26902:26902 --name="7dtd" 7dtd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
PARAMS=$@ | ||
LIVINGDEAD_HOME=/opt/7dtd | ||
|
||
cd $LIVINGDEAD_HOME/engine | ||
export LD_LIBRARY_PATH=$LIVINGDEAD_HOME/engine/ | ||
./7DaysToDieServer.x86 -configfile=serverconfig.xml -logfile $LIVINGDEAD_HOME/engine/output.log -quit -batchmode -nographics -dedicated $PARAMS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
FROM ubuntu:latest | ||
|
||
MAINTAINER mudfly | ||
|
||
ARG STEAM_USER | ||
ARG STEAM_PASS | ||
ARG STEAM_GUARD | ||
ENV LIVINGDEAD_HOME /opt/7dtd | ||
|
||
# Install dependencies | ||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
lib32gcc1 \ | ||
wget \ | ||
xmlstarlet \ | ||
&& groupadd --system flesh && useradd --system --gid flesh --home /opt/7dtd --shell /bin/bash rotting \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR $LIVINGDEAD_HOME | ||
|
||
# Gets SteamCMD | ||
RUN wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz \ | ||
&& tar -xzf steamcmd_linux.tar.gz \ | ||
&& rm steamcmd_linux.tar.gz \ | ||
&& chown -R rotting:flesh /opt/7dtd | ||
|
||
# Install 7dtd | ||
RUN ./steamcmd.sh +login $STEAM_USER $STEAM_PASS $STEAM_GUARD +force_install_dir ./engine/ +app_update 294420 validate +quit \ | ||
&& chown -R rotting:flesh /opt/7dtd | ||
|
||
# Creates 7dtd server as a service | ||
ADD ./serverconfig.xml $LIVINGDEAD_HOME/engine/serverconfig.xml | ||
RUN chown rotting:flesh /opt/7dtd/engine/serverconfig.xml | ||
ADD ./7dtd.sh $LIVINGDEAD_HOME/bin/7dtd | ||
RUN chown -R rotting:flesh /opt/7dtd/bin | ||
|
||
# Expose the default 7dtd server port | ||
EXPOSE 8080/tcp 8081/tcp | ||
EXPOSE 26900 26901 26902 | ||
|
||
USER rotting | ||
VOLUME $LIVINGDEAD_HOME | ||
|
||
CMD ["/opt/7dtd/bin/7dtd"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#Docker file for a 7 Days To Die Server | ||
|
||
##Maintainers | ||
Mudfly <mudfly@gmail.com> | ||
|
||
##Build and Run Server | ||
1. Clone this repository, and change into the directory | ||
2. Copy `server.xml.example` to `server.xml`, and edit to your linking | ||
3. Build the Docker image `docker build --build-arg STEAM_USER=<user> --build-arg STEAM_PASS=<password> --build-arg STEAM_GUARD=<steam guard code> -t 7dtd .` | ||
4. Start the 7 Days To Die server `./7dtd-server.run` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2016 Mudfly <mudfly@gmail.com> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<?xml version="1.0"?> | ||
<ServerSettings> | ||
<!-- Port you want the server to listen on. --> | ||
<property name="ServerPort" value="26900"/> | ||
<!-- Should this server register to master server --> | ||
<property name="ServerIsPublic" value="true"/> | ||
<!-- Whatever you want the name to be. --> | ||
<property name="ServerName" value="7dtd in Docker"/> | ||
<!-- Password to gain entry to the server --> | ||
<property name="ServerPassword" value=""/> | ||
<!-- Maximum Concurrent Players --> | ||
<property name="ServerMaxPlayerCount" value="8"/> | ||
<!-- Whatever you want the description to be. --> | ||
<property name="ServerDescription" value="A 7 Days to Die Docker server"/> | ||
<!-- Website URL for the server --> | ||
<property name="ServerWebsiteURL" value=""/> | ||
<!-- Navezgane, Random Gen --> | ||
<property name="GameWorld" value="Random Gen"/> | ||
<!-- Whatever you want the game name to be THIS CONTROLS THE RANDOM GENERATION SEED --> | ||
<property name="GameName" value="Docker"/> | ||
<!-- 0 - 5, 0=easiest, 5=hardest --> | ||
<property name="GameDifficulty" value="2"/> | ||
<!-- GameModeSurvivalMP, GameModeSurvivalSP (MP has land protection) --> | ||
<property name="GameMode" value="GameModeSurvivalMP"/> | ||
<!-- 0 = default day/night walk/run, 1 = never run, 2 = always run --> | ||
<property name="ZombiesRun" value="0"/> | ||
<!-- cheat mode on/off --> | ||
<property name="BuildCreate" value="false"/> | ||
<!-- real time minutes per in game day: 50 minutes --> | ||
<property name="DayNightLength" value="50"/> | ||
<!-- in game hours the sun shines per day: 18 hours day light per day--> | ||
<property name="DayLightLength" value="18"/> | ||
<!-- Can friendly players damage each other (PvP) --> | ||
<property name="FriendlyFire" value="false"/> | ||
<!-- If disabled a player can join with any selected profile. If true they will join with the last profile they joined with --> | ||
<property name="PersistentPlayerProfiles" value="false"/> | ||
<!-- If a player is less or equal this level he will create a safe zone (no enemies) when spawned --> | ||
<property name="PlayerSafeZoneLevel" value="5"/> | ||
<!-- Hours in world time this safe zone exists --> | ||
<property name="PlayerSafeZoneHours" value="5"/> | ||
<!-- Enable/Disable the control panel --> | ||
<property name="ControlPanelEnabled" value="true"/> | ||
<!-- Port of the control panel webpage --> | ||
<property name="ControlPanelPort" value="8080"/> | ||
<!-- Password to gain entry to the control panel --> | ||
<property name="ControlPanelPassword" value="CHANGEME"/> | ||
<!-- Enable/Disable the telnet --> | ||
<property name="TelnetEnabled" value="true"/> | ||
<!-- Port of the telnet server --> | ||
<property name="TelnetPort" value="8081"/> | ||
<!-- Password to gain entry to telnet interface --> | ||
<property name="TelnetPassword" value="CHANGEME"/> | ||
<!-- Server admin file name --> | ||
<property name="AdminFileName" value="serveradmin.xml"/> | ||
<!-- 0 = everything, 1 = toolbelt only, 2 = backpack only, 3 = delete all --> | ||
<property name="DropOnDeath" value="0"/> | ||
<!-- 0 = nothing, 1 = everything, 2 = toolbelt only, 3 = backpack only --> | ||
<property name="DropOnQuit" value="0"/> | ||
<!-- Time, in seconds, that a zombie will pursue something that has been sensed. --> | ||
<property name="EnemySenseMemory" value="60"/> | ||
<!-- 0 = Disabled 0%, 1 = Very Low 50%, 2 = Low 75%, 3 = Medium 100%, 4 = High 125%, 5 = Very High 150% --> | ||
<property name="EnemySpawnMode" value="3"/> | ||
<!-- 0 = Normal, 1 = Feral --> | ||
<property name="EnemyDifficulty" value="0"/> | ||
<!-- percentage in whole numbers --> | ||
<property name="BlockDurabilityModifier" value="100"/> | ||
<!-- percentage in whole numbers --> | ||
<property name="LootAbundance" value="100"/> | ||
<!-- days in whole numbers --> | ||
<property name="LootRespawnDays" value="30"/> | ||
<!-- Size in blocks that is protected by a keystone --> | ||
<property name="LandClaimSize" value="7"/> | ||
<!-- Keystones must be this many blocks apart (unless you are friends with the other player) --> | ||
<property name="LandClaimDeadZone" value="30"/> | ||
<!-- The number of days a player can be offline before their claims expire and are no longer protected --> | ||
<property name="LandClaimExpiryTime" value="3"/> | ||
<!-- Controls how offline players land claims decay. All claims have full protection for the first 24hrs. 0=Linear, 1=Exponential, 2=Full protection until claim is expired. --> | ||
<property name="LandClaimDecayMode" value="0"/> | ||
<!-- How much protected claim area block hardness is increased when a player is online. 0 means infinite (no damage will ever be taken). Default is 32x --> | ||
<property name="LandClaimOnlineDurabilityModifier" value="4"/> | ||
<!-- How much protected claim area block hardness is increased when a player is offline. 0 means infinite (no damage will ever be taken). Default is 32x --> | ||
<property name="LandClaimOfflineDurabilityModifier" value="4"/> | ||
<!-- How often airdrop occur in game-hours, 0 == never --> | ||
<property name="AirDropFrequency" value="72"/> | ||
<!-- Making this number too large (more than about 80) may cause servers to run at poor framerates which will effect lag and play quality for clients. --> | ||
<property name="MaxSpawnedZombies" value="60"/> | ||
<!-- | ||
If your server has a large number of players you can increase this limit to add more wildlife. Animals don't consume as much CPU as zombies. | ||
NOTE: That this doesn't cause more animals to spawn arbitrarily: The biome spawning system only spawns a certain number of animals in a given | ||
area, but if you have lots of players that are all spread out then you may be hitting the limit and can increase it. | ||
--> | ||
<property name="MaxSpawnedAnimals" value="50"/> | ||
<!-- Enables/Disables EasyAntiCheat --> | ||
<property name="EACEnabled" value="true"/> | ||
<!-- use this to override the default save game path --> | ||
<!--property name="SaveGameFolder" value="absolute path" /--> | ||
</ServerSettings> |