Merge pull request #835 from parkervcp/update/holdfast
update holdfast locations
This commit is contained in:
		| @@ -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"] | ||||
| @@ -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} | ||||
| @@ -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) | ||||
|   | ||||
| @@ -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/) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user