From 4980369696357764611f15ba2c2c0d7f781913ea Mon Sep 17 00:00:00 2001 From: Michael Parker Date: Fri, 4 Dec 2020 16:35:31 -0500 Subject: [PATCH] update holdfast locations Changes the holdfast location --- Holdfast/Dockerfile.txt | 35 ------------------- Holdfast/entrypoint.sh | 31 ---------------- README.md | 1 + steamcmd_servers/README.md | 3 ++ .../holdfast/README.md | 0 .../holdfast}/egg-holdfast-na-w.json | 0 6 files changed, 4 insertions(+), 66 deletions(-) delete mode 100644 Holdfast/Dockerfile.txt delete mode 100644 Holdfast/entrypoint.sh rename Holdfast/README.md.txt => steamcmd_servers/holdfast/README.md (100%) rename {Holdfast => steamcmd_servers/holdfast}/egg-holdfast-na-w.json (100%) diff --git a/Holdfast/Dockerfile.txt b/Holdfast/Dockerfile.txt deleted file mode 100644 index 1b61d2cd..00000000 --- a/Holdfast/Dockerfile.txt +++ /dev/null @@ -1,35 +0,0 @@ -# ---------------------------------- -# Environment: ubuntu -# Minimum Panel Version: 0.7.X -# ---------------------------------- -FROM ubuntu:18.04 - -LABEL author="Ankit Patel" maintainer="ankit@bmghosting.com" - -ENV DEBIAN_FRONTEND noninteractive - -## add container user -RUN useradd -m -d /home/container -s /bin/bash container - -## update base packages -RUN apt update \ - && apt upgrade -y - -## install dependencies -RUN apt install -y gcc g++ libgcc1 lib32gcc1 gdb libc6 libstdc++6 git wget curl tar zip unzip binutils xz-utils liblzo2-2 bzip2 zlib1g iproute2 net-tools netcat telnet libatomic1 libsdl1.2debian libsdl2-2.0-0 \ - libfontconfig libicu60 libiculx60 icu-devtools libunwind8 libssl1.0.0 libssl1.0-dev sqlite3 libsqlite3-dev libmariadbclient-dev libduktape202 libzip4 locales ffmpeg apt-transport-https - -## Steamclient.so Link -RUN ln -s "/home/container/steamcmd/linux64/steamclient.so" "/usr/lib/x86_64-linux-gnu/steamclient.so" - -## configure locale -RUN update-locale lang=en_US.UTF-8 \ - && dpkg-reconfigure --frontend noninteractive locales - -USER container -ENV USER=container HOME=/home/container - -WORKDIR /home/container - -COPY ./entrypoint.sh /entrypoint.sh -CMD ["/bin/bash", "/entrypoint.sh"] diff --git a/Holdfast/entrypoint.sh b/Holdfast/entrypoint.sh deleted file mode 100644 index 06deaca8..00000000 --- a/Holdfast/entrypoint.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -cd /home/container - -# Make internal Docker IP address available to processes. -export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'` - -# Modify the configuration variables using sed -pushd holdfastnaw-dedicated/configs/ -if [ -f "$SERVER_CONFIG_PATH" ]; then - echo "Found configuration file - replacing variables" - sed -i "s/^server_name .*/server_name $(printf '%s\n' "$SERVER_NAME" | sed -e 's/[\/&]/\\&/g')/g" "$SERVER_CONFIG_PATH" - sed -i "s/^maximum_players .*/maximum_players $(printf '%s\n' "$PLAYERS" | sed -e 's/[\/&]/\\&/g')/g" "$SERVER_CONFIG_PATH" - sed -i "s/^server_welcome_message .*/server_welcome_message $(printf '%s\n' "$MOTD" | sed -e 's/[\/&]/\\&/g')/g" "$SERVER_CONFIG_PATH" - sed -i "s/^server_region .*/server_region $(printf '%s\n' "$REGION" | sed -e 's/[\/&]/\\&/g')/g" "$SERVER_CONFIG_PATH" - sed -i "s/^server_admin_password .*/server_admin_password $(printf '%s\n' "$ADMIN_PASS" | sed -e 's/[\/&]/\\&/g')/g" "$SERVER_CONFIG_PATH" - sed -i "s/^#\{0,1\}server_password .*/server_password $(printf '%s\n' "$SERVER_PASS" | sed -e 's/[\/&]/\\&/g')/g" "$SERVER_CONFIG_PATH" - sed -i "s/^server_port .*/server_port $(printf '%s\n' "$SERVER_PORT" | sed -e 's/[\/&]/\\&/g')/g" "$SERVER_CONFIG_PATH" - sed -i "s/^steam_communications_port .*/steam_communications_port $(printf '%s\n' "$SERVER_COMM_PORT" | sed -e 's/[\/&]/\\&/g')/g" "$SERVER_CONFIG_PATH" - sed -i "s/^steam_query_port .*/steam_query_port $(printf '%s\n' "$SERVER_QUERY_PORT" | sed -e 's/[\/&]/\\&/g')/g" "$SERVER_CONFIG_PATH" -else - echo "Configuration file not found: $SERVER_CONFIG_PATH" -fi -popd - -# Replace Startup Variables -MODIFIED_STARTUP=$(echo $(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')) -START_COMMAND=$(echo -e ${MODIFIED_STARTUP}) -echo -e ":/home/container$ ${START_COMMAND}" - -# Run the Server -eval ${MODIFIED_STARTUP} \ No newline at end of file diff --git a/README.md b/README.md index dd3c7968..704a0c4e 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,7 @@ If you are reading this it looks like you are looking to add an egg to your serv * [Don't Starve](/steamcmd_servers/dont_starve) * [ECO](/steamcmd_servers/eco/) * [HLDS server](/steamcmd_servers/hlds_server) +* [Holdfast](/steamcmd_servers/holdfast) * [Hurtworld](/steamcmd_servers/hurtworld) * [Insurgency: Sandstorm](/steamcmd_servers/insurgency_sandstorm) * [Killing Floor 2](/steamcmd_servers/killingfloor2) diff --git a/steamcmd_servers/README.md b/steamcmd_servers/README.md index e121ce10..4c11cd3b 100644 --- a/steamcmd_servers/README.md +++ b/steamcmd_servers/README.md @@ -31,6 +31,9 @@ This is a collection of servers that use steamcmd to install. ## HLDS Server [hlds](hlds_server/) +## Holdfast +[holdfast](holdfast/) + ## Hurtworld [hurtworld](hurtworld/) diff --git a/Holdfast/README.md.txt b/steamcmd_servers/holdfast/README.md similarity index 100% rename from Holdfast/README.md.txt rename to steamcmd_servers/holdfast/README.md diff --git a/Holdfast/egg-holdfast-na-w.json b/steamcmd_servers/holdfast/egg-holdfast-na-w.json similarity index 100% rename from Holdfast/egg-holdfast-na-w.json rename to steamcmd_servers/holdfast/egg-holdfast-na-w.json