Skip to content

Commit

Permalink
Corrected License; Added Env Configs; (Renegade-Master#13)
Browse files Browse the repository at this point in the history
* Corrected License; Added Env Configs;

- .github/workflows/docker-build.yml
- LICENSE
- docker/zomboid-dedicated-server.Dockerfile
- src/install_server.scmd
- src/run_server.sh
  - Clarified source License. License unchanged from GPL v3.

- README.md
- docker-compose.yaml
  - Clarified source License. License unchanged from GPL v3.
  - Added info for new `chown` related config options.
  • Loading branch information
Renegade-Master authored Feb 23, 2022
1 parent 05d43ec commit 1aaf11e
Show file tree
Hide file tree
Showing 7 changed files with 93 additions and 10 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
#
# Project Zomboid Dedicated Server using SteamCMD Docker Image.
# Copyright (C) 2021-2022 Renegade-Master [[email protected]]
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

name: Build and Test Server Image

on:
Expand Down
11 changes: 8 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Project Zomboid Dedicated Server using SteamCMD Docker Image.
Copyright (C) 2021-2022 Renegade-Master [[email protected]]

Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Expand Down Expand Up @@ -631,8 +634,8 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
Project Zomboid Dedicated Server using SteamCMD Docker Image.
Copyright (C) 2021-2022 Renegade-Master [[email protected]]

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -652,7 +655,9 @@ Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

<program> Copyright (C) <year> <name of author>
Project Zomboid Dedicated Server using SteamCMD Docker Image.
Copyright (C) 2021-2022 Renegade-Master [[email protected]]

This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ recommended.
| `MAX_RAM` | Maximum amount of RAM to be used | ([0-9]+)m | 4096m |
| `MOD_NAMES` | Workshop Mod Names (e.g. ClaimNonResidential;MoreDescriptionForTraits) | mod1;mod2;mod | |
| `MOD_WORKSHOP_IDS` | Workshop Mod IDs (e.g. 2160432461;2685168362) | xxxxxx;xxxxx; | |
| `NO_CHOWN_CONFIG_DIR` | Disables automatic filesystem permissions management on config directory | (true&vert;false) | false |
| `NO_CHOWN_GAME_DIR` | Disables automatic filesystem permissions management on game directory | (true&vert;false) | false |
| `PAUSE_ON_EMPTY` | Pause the Server when no Players are connected | (true&vert;false) | true |
| `PUBLIC_SERVER` | Is the server displayed Publicly | (true&vert;false) | true |
| `QUERY_PORT` | Port for other players to connect to | 1000 - 65535 | 16261 |
| `SERVER_NAME` | Publicly visible Server Name | [a-zA-Z0-9]+ | ZomboidServer |
| `SERVER_PASSWORD` | Server password | [a-zA-Z0-9]+ | |
| `STEAM_VAC` | Use Steam VAC anti-cheat | (true&vert;false) | true |
| `USE_STEAM` | Create a Steam Server, or a Non-Steam Server | (true&vert;false) | true |
| `NO_CHOWN_GAME_DIR` | Disables automatic filesystem permissions management on game directory | (true&vert;false) | false |
| `NO_CHOWN_CONFIG_DIR` | Disables automatic filesystem permissions management on config directory | (true&vert;false) | false |

### Docker

Expand Down Expand Up @@ -105,6 +105,8 @@ The following are instructions for running the server using the Docker image.
[--env=MAX_RAM=<value>] \
[--env=MOD_NAMES=<value>] \
[--env=MOD_WORKSHOP_IDS=<value>] \
[--env=NO_CHOWN_CONFIG_DIR=<value>] \
[--env=NO_CHOWN_GAME_DIR=<value>] \
[--env=PAUSE_ON_EMPTY=<value>] \
[--env=PUBLIC_SERVER=<value>] \
[--env=QUERY_PORT=<value>] \
Expand Down
22 changes: 21 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
version: "3.6"
#
# Project Zomboid Dedicated Server using SteamCMD Docker Image.
# Copyright (C) 2021-2022 Renegade-Master [[email protected]]
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

version: "3.8"

services:
zomboid-server:
Expand All @@ -21,6 +39,8 @@ services:
- "MAX_RAM=4096m"
- "MOD_NAMES="
- "MOD_WORKSHOP_IDS="
- "NO_CHOWN_CONFIG_DIR=false"
- "NO_CHOWN_GAME_DIR=false"
- "PAUSE_ON_EMPTY=true"
- "PUBLIC_SERVER=true"
- "QUERY_PORT=16261"
Expand Down
18 changes: 17 additions & 1 deletion docker/zomboid-dedicated-server.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# Project Zomboid Dedicated Server using SteamCMD Docker Image.
# Copyright (C) 2021-2022 Renegade-Master [[email protected]]
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

#######################################################################
# Author: Renegade-Master
# Description: Base image for running a Dedicated Project Zomboid
Expand All @@ -15,7 +31,7 @@ ARG GROUP_ID

# Add metadata labels
LABEL com.renegademaster.zomboid-dedicated-server.authors="Renegade-Master" \
com.renegademaster.zomboid-dedicated-server.contributors="JohnEarle" \
com.renegademaster.zomboid-dedicated-server.contributors="JohnEarle, ramielrowe" \
com.renegademaster.zomboid-dedicated-server.source-repository="https://github.com/Renegade-Master/zomboid-dedicated-server" \
com.renegademaster.zomboid-dedicated-server.image-repository="https://hub.docker.com/renegademaster/zomboid-dedicated-server"

Expand Down
5 changes: 4 additions & 1 deletion src/install_server.scmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
///////////////////////////////////////////////////////////////////////
// SteamCMD installation script for Project Zomboid Dedicated Server
// Author: Renegade-Master
// Description: SteamCMD installation script for Project Zomboid
// Dedicated Server
// License: GNU General Public License v3.0 (see LICENSE)
///////////////////////////////////////////////////////////////////////

// Do not shutdown on a failed command
Expand Down
23 changes: 21 additions & 2 deletions src/run_server.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,32 @@
#!/usr/bin/env bash

#
# Project Zomboid Dedicated Server using SteamCMD Docker Image.
# Copyright (C) 2021-2022 Renegade-Master [[email protected]]
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#

#######################################################################
# Author: Renegade-Master
# Contributors: JohnEarle
# Contributors: JohnEarle, ramielrowe
# Description: Install, update, and start a Dedicated Project Zomboid
# instance.
#######################################################################

# Set to `-x` for Debug logging
set +x
set +x -o pipefail

# Start the Server
function start_server() {
Expand Down

0 comments on commit 1aaf11e

Please sign in to comment.