-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmanifest.yml
More file actions
58 lines (50 loc) · 1.68 KB
/
manifest.yml
File metadata and controls
58 lines (50 loc) · 1.68 KB
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
type: install
version: 0.99
id: minecraft-server
name: Minecraft Server
description: Minecraft server allows players to play online or via a local area network with other people.
homepage: https://github.com/jelastic-jps/minecraft-server
logo: ${baseUrl}/images/minecraft-logo-90px.png
baseUrl: https://raw.githubusercontent.com/jelastic-jps/minecraft-server/master
license:
terms: I agree with <a href='https://account.mojang.com/documents/minecraft_eula' target='_blank'><u>terms of service</u></a>
nodes:
- image: itzg/minecraft-server:1.1.0
env:
EULA: "TRUE"
entryPoint: /start-server.sh
cloudlets: 16
nodeGroup: cp
displayName: Minecraft
actions:
sendEmail:
install:
jps: /addons/sendEmail.yml
settings:
url: ${this.url}
updateConfiguration:
cmd [cp]: |-
echo "eula=true" > /data/eula.txt
sed -i "/usermod\|groupmod/d" /start
apk add screen
wget ${baseUrl}/properties/server.properties -O /data/server.properties
wget ${baseUrl}/lib/jelastic-gc-agent.jar -O /data/jelastic-gc-agent.jar
wget ${baseUrl}/scripts/memoryConfig.sh -O /data/memoryConfig.sh
wget ${baseUrl}/scripts/start-server.sh -O /start-server.sh
chmod +x /start-server.sh
mkdir -p /data/web/
chown -R minecraft:minecraft /data
wget ${baseUrl}/web/index.html -O /data/web/index.html
wget ${baseUrl}/scripts/start-web.sh -O /data/start-web.sh
bash /data/start-web.sh
user: minecraft
addEndpoint:
script: /scripts/addEndpoint.js
params:
nodeId: ${nodes.cp.first.id}
port: 25565
onInstall:
- updateConfiguration
- addEndpoint
- restartContainers:
nodeGroup: cp