-
Notifications
You must be signed in to change notification settings - Fork 1
/
manifest.jps
72 lines (72 loc) · 2.49 KB
/
manifest.jps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"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
}
}
}
}