Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (72 sloc) 2.49 KB
{
"version": 0.99,
"type": "install",
"id": "minecraft-server",
"name": "Minecraft Server",
"description": "Minecraft server allows players to play online or via a local area network with other people.",
"logo": "https://github.com/jelastic-jps/minecraft-server/raw/master/images/minecraft-logo-90px.png",
"homepage": "https://github.com/jelastic-jps/minecraft-server",
"nodes": [
{
"docker": {
"image": "itzg/minecraft-server",
"env": {
"EULA": "TRUE"
},
"entryPoint": "/start-server.sh"
},
"cloudlets": 16,
"nodeGroup": "cp",
"displayName": "Minecraft"
}
],
"license": {
"terms": {
"en": "I agree with <a href='https://account.mojang.com/documents/minecraft_eula' target='_blank'><u>terms of service</u></a>"
}
},
"onInstall": [
"updateConfiguration",
"addEndpoint",
{
"restartContainers": {
"nodeGroup": "cp"
}
}
],
"actions": {
"sendEmail": {
"install": {
"jps": "https://raw.githubusercontent.com/jelastic-jps/minecraft-server/master/addons/sendEmail.jps",
"settings": {
"url": "${this.url}"
}
}
},
"updateConfiguration": {
"cmd [cp]": [
"echo \"eula=true\" > /data/eula.txt",
"sed -i \"/usermod\\|groupmod/d\" /start",
"apk add screen",
"wget https://github.com/jelastic-jps/minecraft-server/raw/master/properties/server.properties -O /data/server.properties",
"wget https://github.com/jelastic-jps/minecraft-server/raw/master/lib/jelastic-gc-agent.jar -O /data/jelastic-gc-agent.jar",
"wget https://github.com/jelastic-jps/minecraft-server/raw/master/scripts/memoryConfig.sh -O /data/memoryConfig.sh",
"wget https://github.com/jelastic-jps/minecraft-server/raw/master/scripts/start-server.sh -O /start-server.sh",
"chmod +x /start-server.sh",
"mkdir -p /data/web/",
"chown -R minecraft:minecraft /data",
"wget https://github.com/jelastic-jps/minecraft-server/raw/master/web/index.html -O /data/web/index.html",
"wget https://github.com/jelastic-jps/minecraft-server/raw/master/scripts/start-web.sh -O /data/start-web.sh",
"bash /data/start-web.sh"
],
"user": "minecraft"
},
"addEndpoint": {
"script": "https://github.com/jelastic-jps/minecraft-server/raw/master/scripts/addEndpoint.js",
"params": {
"nodeId": "${nodes.cp.first.id}",
"port": 25565
}
}
}
}