Skip to content

Instantly share code, notes, and snippets.

@FlashyReese
Last active December 27, 2023 04:09
Show Gist options
  • Save FlashyReese/e37a3bc027673c523034d8b3c59eac77 to your computer and use it in GitHub Desktop.
Save FlashyReese/e37a3bc027673c523034d8b3c59eac77 to your computer and use it in GitHub Desktop.
Reposilite 3.x Egg for Pterodactyl
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2022-07-04T10:27:58-04:00",
"name": "Reposilite 3.x",
"author": "reeszrbteam@gmail.com",
"description": "Lightweight and easy-to-use repository manager for Maven-based artifacts in the JVM ecosystem.\r\n\r\nSimple, extensible, scalable, and self-hosted alternative to managers like Nexus, Archiva, or Artifactory, with reduced resources consumption written in Kotlin \ud83d\udce6",
"features": null,
"docker_images": {
"ghcr.io\/pterodactyl\/yolks:java_17": "ghcr.io\/pterodactyl\/yolks:java_17",
"ghcr.io\/pterodactyl\/yolks:java_16": "ghcr.io\/pterodactyl\/yolks:java_16",
"ghcr.io\/pterodactyl\/yolks:java_11": "ghcr.io\/pterodactyl\/yolks:java_11",
"ghcr.io\/pterodactyl\/yolks:java_8": "ghcr.io\/pterodactyl\/yolks:java_8"
},
"file_denylist": [],
"startup": "java -Xmx{{SERVER_MEMORY}}M -jar {{SERVER_JARFILE}}",
"config": {
"files": "{\r\n \"configuration.cdn\": {\r\n \"parser\": \"yaml\",\r\n \"find\": {\r\n \"port\": \"{{server.build.default.port}}\"\r\n }\r\n },\r\n \"configuration.local.cdn\": {\r\n \"parser\": \"yaml\",\r\n \"find\": {\r\n \"port\": \"{{server.build.default.port}}\"\r\n }\r\n }\r\n}",
"startup": "{\r\n \"done\": \"INFO | Done (\"\r\n}",
"logs": "{\r\n \"custom\": false,\r\n \"location\": \"latest.log\"\r\n}",
"stop": "shutdown"
},
"scripts": {
"installation": {
"script": "#!\/bin\/bash\r\n# Reposilite Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\napt update\r\napt install -y curl jq wget\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n# Enable snapshots\r\nif [ -z \"$REPOSILITE_VERSION\" ] || [ \"$REPOSILITE_VERSION\" == \"latest\" ]; then\r\nREPOSILITE_VERSION=$(curl -sSL https:\/\/api.github.com\/repos\/dzikoysk\/reposilite\/releases | jq -r '.[] | select(.prerelease == false )|.tag_name' | head -n1)\r\nelif [ \"$REPOSILITE_VERSION\" == \"snapshot\" ]; then\r\nREPOSILITE_VERSION=$(curl -sSL https:\/\/api.github.com\/repos\/dzikoysk\/reposilite\/releases | jq -r '.[] | select(.prerelease == true )|.tag_name' | head -n1)\r\nfi\r\nwget -O reposilite.jar https:\/\/maven.reposilite.com\/releases\/com\/reposilite\/reposilite\/$REPOSILITE_VERSION\/reposilite-$REPOSILITE_VERSION-all.jar\r\necho -e \"Install Complete\"",
"container": "debian:buster-slim",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "Server Jar File",
"description": "The name of the server jarfile to run the server with.",
"env_variable": "SERVER_JARFILE",
"default_value": "reposilite.jar",
"user_viewable": true,
"user_editable": true,
"rules": "required|regex:\/^([\\w\\d._-]+)(\\.jar)$\/",
"field_type": "text"
},
{
"name": "Reposilite Version",
"description": "The version of Reposilite to install. Use \"latest\" to install the latest version, or use \"snapshot\" to install the latest snapshot.",
"env_variable": "REPOSILITE_VERSION",
"default_value": "latest",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|between:3,15",
"field_type": "text"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment