From 19282e8ebaad4b109cda9e38b99bd0b1587b6429 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 20 Apr 2025 15:40:32 +0100 Subject: [PATCH] Initial Commit --- README.md | 1 + puck-modded.json | 32 ++++++++++++++++++++++++++++++++ puck-vanilla.json | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 puck-modded.json create mode 100644 puck-vanilla.json diff --git a/README.md b/README.md index e69de29..ffa2b02 100644 --- a/README.md +++ b/README.md @@ -0,0 +1 @@ +eg g \ No newline at end of file diff --git a/puck-modded.json b/puck-modded.json new file mode 100644 index 0000000..00eb9f5 --- /dev/null +++ b/puck-modded.json @@ -0,0 +1,32 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL", + "meta": { + "version": "PLCN_v1", + "update_url": null + }, + "exported_at": "2025-04-20T14:37:42+00:00", + "name": "Puck - Bepinex Modded", + "author": "adam@solvedcore.com", + "uuid": "61e489bb-def3-47ee-9ae7-d41a766980c9", + "description": null, + "features": [], + "docker_images": { + "steamcmd": "ghcr.io\/parkervcp\/steamcmd:debian" + }, + "file_denylist": [], + "startup": ".\/run_bepinex.sh", + "config": { + "files": "{}", + "startup": "{\n \"done\": \"UDP socket started on port \"\n}", + "logs": "{}", + "stop": "^SIGINT" + }, + "scripts": { + "installation": { + "script": "#!\/bin\/bash\n# steamcmd Base Installation Script\n#\n# Server Files: \/mnt\/server\n# Image to install with is 'ghcr.io\/parkervcp\/installers:debian'\n\n##\n#\n# Variables\n# STEAM_USER, STEAM_PASS, STEAM_AUTH - Steam user setup. If a user has 2fa enabled it will most likely fail due to timeout. Leave blank for anon install.\n# WINDOWS_INSTALL - if it's a windows server you want to install set to 1\n# SRCDS_APPID - steam app id found here - https:\/\/developer.valvesoftware.com\/wiki\/Dedicated_Servers_List\n# SRCDS_BETAID - beta branch of a steam app. Leave blank to install normal branch\n# SRCDS_BETAPASS - password for a beta branch should one be required during private or closed testing phases.. Leave blank for no password.\n# INSTALL_FLAGS - Any additional SteamCMD flags to pass during install.. Keep in mind that steamcmd auto update process in the docker image might overwrite or ignore these when it performs update on server boot.\n# AUTO_UPDATE - Adding this variable to the egg allows disabling or enabling automated updates on boot. Boolean value. 0 to disable and 1 to enable.\n#\n ##\n\n# Install packages. Default packages below are not required if using our existing install image thus speeding up the install process.\n#apt -y update\n#apt -y --no-install-recommends install curl lib32gcc-s1 ca-certificates\n\n## just in case someone removed the defaults.\nif [[ \"${STEAM_USER}\" == \"\" ]] || [[ \"${STEAM_PASS}\" == \"\" ]]; then\n echo -e \"steam user is not set.\\n\"\n echo -e \"Using anonymous user.\\n\"\n STEAM_USER=anonymous\n STEAM_PASS=\"\"\n STEAM_AUTH=\"\"\nelse\n echo -e \"user set to ${STEAM_USER}\"\nfi\n\n## download and install steamcmd\ncd \/tmp\nmkdir -p \/mnt\/server\/steamcmd\ncurl -sSL -o steamcmd.tar.gz https:\/\/steamcdn-a.akamaihd.net\/client\/installer\/steamcmd_linux.tar.gz\ntar -xzvf steamcmd.tar.gz -C \/mnt\/server\/steamcmd\nmkdir -p \/mnt\/server\/steamapps # Fix steamcmd disk write error when this folder is missing\ncd \/mnt\/server\/steamcmd\n\n# SteamCMD fails otherwise for some reason, even running as root.\n# This is changed at the end of the install process anyways.\nchown -R root:root \/mnt\nexport HOME=\/mnt\/server\n\n## install game using steamcmd\n.\/steamcmd.sh +force_install_dir \/mnt\/server +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ \"${WINDOWS_INSTALL}\" == \"1\" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update 3481440 $( [[ -z ${SRCDS_BETAID} ]] || printf %s \"-beta ${SRCDS_BETAID}\" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s \"-betapassword ${SRCDS_BETAPASS}\" ) ${INSTALL_FLAGS} validate +quit ## other flags may be needed depending on install. looking at you cs 1.6\n\n## set up 32 bit libraries\nmkdir -p \/mnt\/server\/.steam\/sdk32\ncp -v linux32\/steamclient.so ..\/.steam\/sdk32\/steamclient.so\n\n## set up 64 bit libraries\nmkdir -p \/mnt\/server\/.steam\/sdk64\ncp -v linux64\/steamclient.so ..\/.steam\/sdk64\/steamclient.so\n\n## add below your custom commands if needed\n\ncd \/mnt\/server\nchmod +x .\/Puck.x86_64\n\n## Download and install BepInEx\necho \"Downloading BepInEx...\"\ncurl -sSL -o BepInEx.zip https:\/\/builds.bepinex.dev\/projects\/bepinex_be\/733\/BepInEx-Unity.IL2CPP-linux-x64-6.0.0-be.733%2B995f049.zip\n\necho \"Unzipping BepInEx...\"\nunzip -o BepInEx.zip -d \/mnt\/server\n\necho \"Setting permissions for run_bepinex.sh...\"\nchmod +x \/mnt\/server\/run_bepinex.sh\nsed -i 's|^executable_name=.*|executable_name=\".\/Puck.x86_64\"|' \/mnt\/server\/run_bepinex.sh\n\necho \"Removing architecture detection lines from run_bepinex.sh...\"\nsed -i '183,205d' \/mnt\/server\/run_bepinex.sh\n\n## Clean up\nrm BepInEx.zip\n\necho \"BepInEx installation completed.\"\n\n## install end\necho \"-----------------------------------------\"\necho \"Installation completed...\"\necho \"-----------------------------------------\"", + "container": "ghcr.io\/pelican-eggs\/installers:debian", + "entrypoint": "bash" + } + }, + "variables": [] +} \ No newline at end of file diff --git a/puck-vanilla.json b/puck-vanilla.json new file mode 100644 index 0000000..4e61baf --- /dev/null +++ b/puck-vanilla.json @@ -0,0 +1,33 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL", + "meta": { + "version": "PLCN_v1", + "update_url": null + }, + "exported_at": "2025-04-20T14:37:42+00:00", + "name": "Puck - Vanilla", + "author": "adam@solvedcore.com", + "uuid": "3f2c1a8e-4b5d-4c9f-9a7e-2d8f6e3b1c4a", + "description": null, + "features": [], + "docker_images": { + "steamcmd": "ghcr.io\/parkervcp\/steamcmd:debian", + "temp": "ghcr.io\/parkervcp\/steamcmd" + }, + "file_denylist": [], + "startup": ".\/Puck.x86_64", + "config": { + "files": "{}", + "startup": "{\n \"done\": \"UDP socket started on port \"\n}", + "logs": "{}", + "stop": "^SIGINT" + }, + "scripts": { + "installation": { + "script": "#!\/bin\/bash\n# steamcmd Base Installation Script\n#\n# Server Files: \/mnt\/server\n# Image to install with is 'ghcr.io\/parkervcp\/installers:debian'\n\n##\n#\n# Variables\n# STEAM_USER, STEAM_PASS, STEAM_AUTH - Steam user setup. If a user has 2fa enabled it will most likely fail due to timeout. Leave blank for anon install.\n# WINDOWS_INSTALL - if it's a windows server you want to install set to 1\n# SRCDS_APPID - steam app id found here - https:\/\/developer.valvesoftware.com\/wiki\/Dedicated_Servers_List\n# SRCDS_BETAID - beta branch of a steam app. Leave blank to install normal branch\n# SRCDS_BETAPASS - password for a beta branch should one be required during private or closed testing phases.. Leave blank for no password.\n# INSTALL_FLAGS - Any additional SteamCMD flags to pass during install.. Keep in mind that steamcmd auto update process in the docker image might overwrite or ignore these when it performs update on server boot.\n# AUTO_UPDATE - Adding this variable to the egg allows disabling or enabling automated updates on boot. Boolean value. 0 to disable and 1 to enable.\n#\n ##\n\n# Install packages. Default packages below are not required if using our existing install image thus speeding up the install process.\n#apt -y update\n#apt -y --no-install-recommends install curl lib32gcc-s1 ca-certificates\n\n## just in case someone removed the defaults.\nif [[ \"${STEAM_USER}\" == \"\" ]] || [[ \"${STEAM_PASS}\" == \"\" ]]; then\n echo -e \"steam user is not set.\\n\"\n echo -e \"Using anonymous user.\\n\"\n STEAM_USER=anonymous\n STEAM_PASS=\"\"\n STEAM_AUTH=\"\"\nelse\n echo -e \"user set to ${STEAM_USER}\"\nfi\n\n## download and install steamcmd\ncd \/tmp\nmkdir -p \/mnt\/server\/steamcmd\ncurl -sSL -o steamcmd.tar.gz https:\/\/steamcdn-a.akamaihd.net\/client\/installer\/steamcmd_linux.tar.gz\ntar -xzvf steamcmd.tar.gz -C \/mnt\/server\/steamcmd\nmkdir -p \/mnt\/server\/steamapps # Fix steamcmd disk write error when this folder is missing\ncd \/mnt\/server\/steamcmd\n\n# SteamCMD fails otherwise for some reason, even running as root.\n# This is changed at the end of the install process anyways.\nchown -R root:root \/mnt\nexport HOME=\/mnt\/server\n\n## install game using steamcmd\n.\/steamcmd.sh +force_install_dir \/mnt\/server +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ \"${WINDOWS_INSTALL}\" == \"1\" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update 3481440 $( [[ -z ${SRCDS_BETAID} ]] || printf %s \"-beta ${SRCDS_BETAID}\" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s \"-betapassword ${SRCDS_BETAPASS}\" ) ${INSTALL_FLAGS} validate +quit ## other flags may be needed depending on install. looking at you cs 1.6\n\n## set up 32 bit libraries\nmkdir -p \/mnt\/server\/.steam\/sdk32\ncp -v linux32\/steamclient.so ..\/.steam\/sdk32\/steamclient.so\n\n## set up 64 bit libraries\nmkdir -p \/mnt\/server\/.steam\/sdk64\ncp -v linux64\/steamclient.so ..\/.steam\/sdk64\/steamclient.so\n\n## add below your custom commands if needed\n\ncd \/mnt\/server\nchmod +x .\/Puck.x86_64\n\n## Clean up\n\necho \"-----------------------------------------\"\necho \"Installation completed...\"\necho \"-----------------------------------------\"", + "container": "ghcr.io\/pelican-eggs\/installers:debian", + "entrypoint": "bash" + } + }, + "variables": [] +} \ No newline at end of file