From da22608468d5e233e3cc6b0212b334da4ec2014e Mon Sep 17 00:00:00 2001 From: Faye Date: Sun, 14 Nov 2021 23:44:24 +0100 Subject: [PATCH] feat: Elasticsearch egg (#1265) --- README.md | 2 + software/elasticsearch/README.md | 16 ++++++ software/elasticsearch/egg-elasticsearch.json | 50 +++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 software/elasticsearch/README.md create mode 100644 software/elasticsearch/egg-elasticsearch.json diff --git a/README.md b/README.md index 302c1ad3..9102864b 100644 --- a/README.md +++ b/README.md @@ -249,6 +249,8 @@ If you are reading this it looks like you are looking to add an egg to your serv ## [Software](/software/) ### Code Server * [Code-Server](/software/code-server) +### Elasticsearch +* [Elasticsearch](/software/elasticsearch) ### Gitea * [Gitea](/software/gitea) ### Grafana diff --git a/software/elasticsearch/README.md b/software/elasticsearch/README.md new file mode 100644 index 00000000..78721fc6 --- /dev/null +++ b/software/elasticsearch/README.md @@ -0,0 +1,16 @@ +# Elasticsearch + +### From the [Elasticsearch](https://github.com/elastic/elasticsearch) GitHub + +Run [Elasticsearch](https://github.com/elastic/elasticsearch) on any machine anywhere and access it in the browser. + +### vm.max_map_count requirement +Please follow this for the vm.max_map_count requirement: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_set_vm_max_map_count_to_at_least_262144 + +### Server Ports + +Ports required to run the server in a table format. + +| Port | default | +| ---- | ------- | +| Game | 9200 | diff --git a/software/elasticsearch/egg-elasticsearch.json b/software/elasticsearch/egg-elasticsearch.json new file mode 100644 index 00000000..47938199 --- /dev/null +++ b/software/elasticsearch/egg-elasticsearch.json @@ -0,0 +1,50 @@ +{ + "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", + "meta": { + "version": "PTDL_v1", + "update_url": null + }, + "exported_at": "2021-07-27T08:27:04-05:00", + "name": "Elasticsearch", + "author": "dominic@stilma.net", + "description": null, + "features": null, + "images": [ + "quay.io\/parkervcp\/pterodactyl-images:ubuntu" + ], + "file_denylist": [], + "startup": ".\/bin\/elasticsearch -E network.host=0.0.0.0 -E http.port={{SERVER_PORT}} -E discovery.type={{DISCOVERY_SEED_HOSTS}}", + "config": { + "files": "{}", + "startup": "{\r\n \"done\": \"started\"\r\n}", + "logs": "{}", + "stop": "^C" + }, + "scripts": { + "installation": { + "script": "#!\/bin\/bash\r\n# Elasticsearch Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\n\r\n## Install Requirements\r\n\r\napt update\r\napt install -y jq ca-certificates gnupg2 wget tar curl\r\n\r\ncd \/mnt\/server\r\n\r\n## Install Elasticsearch\r\nwget https:\/\/artifacts.elastic.co\/downloads\/elasticsearch\/elasticsearch-$VERSION-linux-x86_64.tar.gz\r\ntar -zxf elasticsearch-*-linux-x86_64.tar.gz --directory \/mnt\/server\r\nmv elasticsearch*\/* \/mnt\/server\r\nrm elasticsearch-*-linux-x86_64.tar.gz\r\nrm -R elasticsearch-*\r\n\r\n## Finish command\r\necho \"All done! Just start it up :)\"", + "container": "debian:buster-slim", + "entrypoint": "bash" + } + }, + "variables": [ + { + "name": "Discovery Seed Hosts", + "description": "Please keep default if you are unsure.", + "env_variable": "DISCOVERY_SEED_HOSTS", + "default_value": "single-node", + "user_viewable": true, + "user_editable": true, + "rules": "required" + }, + { + "name": "Elasticsearch Version", + "description": "Go to https:\/\/www.elastic.co\/downloads\/elasticsearch and look at the version at the top.", + "env_variable": "VERSION", + "default_value": "7.15.1", + "user_viewable": true, + "user_editable": true, + "rules": "required|string|max:20" + } + ] +}