From c8f3277a4823dfe84ad45658e680a501d2feef91 Mon Sep 17 00:00:00 2001 From: TekExplorer Date: Tue, 5 Jan 2021 19:33:25 +0000 Subject: [PATCH] Update bot eggs to have an image selection --- bots/discord/discord.js/egg-discord-js-generic.json | 5 +++++ bots/discord/discord.py/egg-discord-py-generic.json | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/bots/discord/discord.js/egg-discord-js-generic.json b/bots/discord/discord.js/egg-discord-js-generic.json index 910958b6..42c60cdf 100644 --- a/bots/discord/discord.js/egg-discord-js-generic.json +++ b/bots/discord/discord.js/egg-discord-js-generic.json @@ -8,6 +8,11 @@ "author": "parker@parkervcp.com", "description": "a generic discord js bot egg\r\n\r\nThis will clone a git repo for a bot. it defaults to master if no branch is specified.\r\n\r\nInstalls the node_modules on install. If you set user_upload then I assume you know what you are doing.", "image": "quay.io\/parkervcp\/pterodactyl-images:debian_nodejs-12", + "images": [ + "quay.io\/parkervcp\/pterodactyl-images:debian_nodejs-10", + "quay.io\/parkervcp\/pterodactyl-images:debian_nodejs-12", + "quay.io\/parkervcp\/pterodactyl-images:debian_nodejs-14" + ], "startup": "if [[ -d .git ]] && [[ {{AUTO_UPDATE}} == \"1\" ]]; then git pull; fi; if [[ ! -z ${NODE_PACKAGES} ]]; then \/usr\/local\/bin\/npm install ${NODE_PACKAGES}; fi; if [ -f \/home\/container\/package.json ]; then \/usr\/local\/bin\/npm install --production; fi; \/usr\/local\/bin\/node \/home\/container\/{{BOT_JS_FILE}}", "config": { "files": "{}", diff --git a/bots/discord/discord.py/egg-discord-py-generic.json b/bots/discord/discord.py/egg-discord-py-generic.json index 6fa286c5..9d37bd7e 100644 --- a/bots/discord/discord.py/egg-discord-py-generic.json +++ b/bots/discord/discord.py/egg-discord-py-generic.json @@ -8,6 +8,10 @@ "author": "parker@parkervcp.com", "description": "A Discord bot written in Python using discord.py\r\n\r\nhttps:\/\/github.com\/Ispira\/pixel-bot", "image": "quay.io\/parkervcp\/pterodactyl-images:debian_python-3.8", + "images": [ + "quay.io\/parkervcp\/pterodactyl-images:debian_python-3.8", + "quay.io\/parkervcp\/pterodactyl-images:debian_python-2.7" + ], "startup": "if [[ -d .git ]] && [[ {{AUTO_UPDATE}} == \"1\" ]]; then git pull; fi; if [[ ! -z ${PY_PACKAGES} ]]; then pip install -U --target \/home\/container\/ ${PY_PACKAGES}; fi; if [[ -f \/home\/container\/requirements.txt ]]; then pip install -U --target \/home\/container\/ -r requirements.txt; fi; \/usr\/local\/bin\/python \/home\/container\/{{BOT_PY_FILE}}", "config": { "files": "{}",