From e94bd230203794d18b50e94900dd367d34854abe Mon Sep 17 00:00:00 2001 From: Michael Parker Date: Sat, 11 Jul 2020 00:36:33 -0400 Subject: [PATCH] add redis 6 adds an egg for redis 6 better handling of the redis-cli makes it somewhat usable. --- database/{ => redis}/redis-5/README.md | 0 database/{ => redis}/redis-5/egg-redis.json | 0 database/{ => redis}/redis-6/README.md | 0 database/redis/redis-6/egg-redis-6.json | 36 +++++++++++++++++++++ 4 files changed, 36 insertions(+) rename database/{ => redis}/redis-5/README.md (100%) rename database/{ => redis}/redis-5/egg-redis.json (100%) rename database/{ => redis}/redis-6/README.md (100%) create mode 100644 database/redis/redis-6/egg-redis-6.json diff --git a/database/redis-5/README.md b/database/redis/redis-5/README.md similarity index 100% rename from database/redis-5/README.md rename to database/redis/redis-5/README.md diff --git a/database/redis-5/egg-redis.json b/database/redis/redis-5/egg-redis.json similarity index 100% rename from database/redis-5/egg-redis.json rename to database/redis/redis-5/egg-redis.json diff --git a/database/redis-6/README.md b/database/redis/redis-6/README.md similarity index 100% rename from database/redis-6/README.md rename to database/redis/redis-6/README.md diff --git a/database/redis/redis-6/egg-redis-6.json b/database/redis/redis-6/egg-redis-6.json new file mode 100644 index 00000000..4e360ed6 --- /dev/null +++ b/database/redis/redis-6/egg-redis-6.json @@ -0,0 +1,36 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v1" + }, + "exported_at": "2020-07-11T00:34:47-04:00", + "name": "Redis-6", + "author": "parker@parkervcp.com", + "description": "Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams.", + "image": "quay.io\/parkervcp\/pterodactyl-images:db_redis-6", + "startup": "\/usr\/local\/bin\/redis-server \/home\/container\/redis.conf --save 60 1 --dir \/home\/container\/ --bind 0.0.0.0 --port {{SERVER_PORT}} --requirepass {{SERVER_PASSWORD}} --maxmemory {{SERVER_MEMORY}}mb --daemonize yes && redis-cli -p {{SERVER_PORT}} -a {{SERVER_PASSWORD}}; redis-cli -p {{SERVER_PORT}} -a {{SERVER_PASSWORD}} shutdown save", + "config": { + "files": "{}", + "startup": "{\r\n \"done\": \"Configuration loaded\"\r\n}", + "logs": "{}", + "stop": "^C" + }, + "scripts": { + "installation": { + "script": "#!\/bin\/ash\r\n# Redis Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\n\r\napk add --no-cache curl\r\n\r\nif [ ! -d \/mnt\/server ]; then\r\n mkdir \/mnt\/server\/\r\nfi\r\n\r\ncd \/mnt\/server\/\r\n\r\nif [ ! -d \/mnt\/server\/redis.conf ]; then\r\n curl https:\/\/raw.githubusercontent.com\/redis\/redis\/6.0\/redis.conf -o redis.conf\r\nfi\r\n\r\nsleep 5\r\necho -e \"Install complete. Made this to not have issues.\"", + "container": "alpine:3.10", + "entrypoint": "ash" + } + }, + "variables": [ + { + "name": "Redis Password", + "description": "The password redis should use to secure the server.", + "env_variable": "SERVER_PASSWORD", + "default_value": "P@55w0rd", + "user_viewable": 1, + "user_editable": 1, + "rules": "required|string" + } + ] +} \ No newline at end of file