From 756c27f3be85148340f8f4283eb4c291aaa566ea Mon Sep 17 00:00:00 2001 From: Thomas Deinhamer Date: Mon, 4 Jan 2016 02:23:30 +0100 Subject: [PATCH 01/39] Add some comments to the Dockerfile --- build/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build/Dockerfile b/build/Dockerfile index 953ac29..70df3c8 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,6 +1,7 @@ FROM ubuntu:14.04 MAINTAINER Thomas Deinhamer +# Set environment variables. ENV STORAGE_ROOT="/home/steam/.klei/" \ CONF_DIR="DoNotStarveTogether" \ DEFAULT_SERVER_NAME="Dont Starve Together" \ @@ -30,12 +31,14 @@ ENV STORAGE_ROOT="/home/steam/.klei/" \ BIND_IP="0.0.0.0" \ DISABLECLOUD=true +# Install dependencies. RUN dpkg --add-architecture i386 \ && apt-get update -y \ && apt-get install -y curl lib32gcc1 lib32stdc++6 libcurl4-gnutls-dev:i386 \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* +# Install gosu. RUN gpg --keyserver pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 RUN curl -o /usr/local/bin/gosu -fSL "https://github.com/tianon/gosu/releases/download/1.7/gosu-$(dpkg --print-architecture)" \ && curl -o /usr/local/bin/gosu.asc -fSL "https://github.com/tianon/gosu/releases/download/1.7/gosu-$(dpkg --print-architecture).asc" \ @@ -43,16 +46,20 @@ RUN curl -o /usr/local/bin/gosu -fSL "https://github.com/tianon/gosu/releases/do && rm /usr/local/bin/gosu.asc \ && chmod +x /usr/local/bin/gosu +# Add steam user. RUN useradd -m steam +# Add entrypoint script. COPY /entrypoint.sh /home/steam/ RUN chmod +x /home/steam/entrypoint.sh +# Install SteamCMD. RUN cd /home/steam \ && curl -SLO "http://media.steampowered.com/installer/steamcmd_linux.tar.gz" \ && tar -xvf steamcmd_linux.tar.gz -C /home/steam \ && rm steamcmd_linux.tar.gz +# Install Don't Starve Together Server. RUN /home/steam/steamcmd.sh \ +@ShutdownOnFailedCommand 1 \ +@NoPromptForPassword 1 \ From 6ce5331acd70f366001e63b62e9f0314b0740c1f Mon Sep 17 00:00:00 2001 From: Thomas Deinhamer Date: Mon, 4 Jan 2016 19:51:35 +0100 Subject: [PATCH 02/39] Update Vagrantfile --- Vagrantfile | 31 +++++-------------------------- install.sh | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 26 deletions(-) create mode 100644 install.sh diff --git a/Vagrantfile b/Vagrantfile index f7afc98..c26869b 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -1,24 +1,3 @@ -$script = <