Add curseforge to minecraft server
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ff65899e70
commit
fe42f0b029
@ -13,6 +13,21 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: games
|
app: games
|
||||||
spec:
|
spec:
|
||||||
|
initContainers:
|
||||||
|
- name: modpack-downloader
|
||||||
|
image: alpine:latest
|
||||||
|
volumeMounts:
|
||||||
|
- name: minecraft-modpacks
|
||||||
|
mountPath: /modpacks
|
||||||
|
env:
|
||||||
|
- name: MODPACK_URL
|
||||||
|
value: "https://s3.clortox.com/minecraft-modpacks/modpack-latest.zip"
|
||||||
|
command: ["/bin/sh"]
|
||||||
|
args:
|
||||||
|
- "-c"
|
||||||
|
- |
|
||||||
|
rm -rf /modpacks/*
|
||||||
|
wget -O /modpacks/modpack.zip "$MODPACK_URL"
|
||||||
containers:
|
containers:
|
||||||
- name: minecraft
|
- name: minecraft
|
||||||
image: itzg/minecraft-server
|
image: itzg/minecraft-server
|
||||||
@ -34,11 +49,13 @@ spec:
|
|||||||
|
|
||||||
- name: VERSION
|
- name: VERSION
|
||||||
value: "1.12.2"
|
value: "1.12.2"
|
||||||
#- name: TYPE
|
- name: TYPE
|
||||||
# value: "AUTO_CURSEFORGE"
|
value: "CURSEFORGE"
|
||||||
|
- name: CF_SERVER_MOD
|
||||||
|
value: "/modpacks/modpack.zip"
|
||||||
|
|
||||||
- name: ICON
|
- name: ICON
|
||||||
value: "https://s3.clortox.com/static-assets/img/jenny.png"
|
value: "https://s3.clortox.com/minecraft-modpacks/server-icon.png"
|
||||||
- name: OVERRIDE_ICON
|
- name: OVERRIDE_ICON
|
||||||
value: "TRUE"
|
value: "TRUE"
|
||||||
- name: MOTD
|
- name: MOTD
|
||||||
@ -59,7 +76,11 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: minecraft-data
|
- name: minecraft-data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
|
- name: minecraft-modpacks
|
||||||
|
mountPath: /modpacks
|
||||||
volumes:
|
volumes:
|
||||||
- name: minecraft-data
|
- name: minecraft-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: minecraft-data-pvc
|
claimName: minecraft-data-pvc
|
||||||
|
- name: minecraft-modpacks
|
||||||
|
emptyDir: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user