mirror of
https://github.com/parkervcp/eggs.git
synced 2024-11-30 19:22:53 +08:00
45 lines
1.6 KiB
JSON
45 lines
1.6 KiB
JSON
|
{
|
||
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
||
|
"meta": {
|
||
|
"version": "PTDL_v1"
|
||
|
},
|
||
|
"exported_at": "2020-10-11T12:12:50-04:00",
|
||
|
"name": "discordgo generic",
|
||
|
"author": "parker@parkervcp.com",
|
||
|
"description": "A generic golang egg.\r\n\r\nMeant to be customized before it is used.",
|
||
|
"image": "quay.io\/parkervcp\/pterodactyl-images:base_debian",
|
||
|
"startup": ".\/${EXECUTABLE}",
|
||
|
"config": {
|
||
|
"files": "{}",
|
||
|
"startup": "{}",
|
||
|
"logs": "{}",
|
||
|
"stop": "^C"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"installation": {
|
||
|
"script": "#!\/bin\/bash\r\n# golang generic package\r\n\r\n\r\nif [ ! -d \/mnt\/server\/ ]; then\r\n mkdir -p \/mnt\/server\/\r\nfi\r\n\r\ngo get ${GO_PACKAGE}\r\n\r\ncd src\/${GO_PACKAGE}\r\n\r\ngo get\r\n\r\ngo build\r\n\r\ncp -f ${EXECUTABLE} \/mnt\/server\/",
|
||
|
"container": "golang:1.15-buster",
|
||
|
"entrypoint": "bash"
|
||
|
}
|
||
|
},
|
||
|
"variables": [
|
||
|
{
|
||
|
"name": "Go Package",
|
||
|
"description": "Go package to get and build",
|
||
|
"env_variable": "GO_PACKAGE",
|
||
|
"default_value": "",
|
||
|
"user_viewable": 1,
|
||
|
"user_editable": 1,
|
||
|
"rules": "required|string"
|
||
|
},
|
||
|
{
|
||
|
"name": "Executable",
|
||
|
"description": "This is the executable from the bot build.",
|
||
|
"env_variable": "EXECUTABLE",
|
||
|
"default_value": "",
|
||
|
"user_viewable": 1,
|
||
|
"user_editable": 0,
|
||
|
"rules": "required|string"
|
||
|
}
|
||
|
]
|
||
|
}
|