diff --git a/games/minecraft/minecraft-deployment.yaml b/games/minecraft/minecraft-deployment.yaml index 9ed8135..d969289 100644 --- a/games/minecraft/minecraft-deployment.yaml +++ b/games/minecraft/minecraft-deployment.yaml @@ -13,21 +13,22 @@ spec: labels: app: games 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" + initContainers: + - name: modpack-downloader + image: alpine:latest + volumeMounts: + - name: minecraft-modpacks + mountPath: /modpacks + env: + - name: MODPACK_URL + value: "https://s3.clortox.com/minecraft-modpacks/cf-modpack-latest.zip" + #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: - name: minecraft image: itzg/minecraft-server:java8-jdk @@ -49,18 +50,26 @@ spec: - name: VERSION value: "1.12.2" - - name: MODPACK - value: "https://s3.clortox.com/minecraft-modpacks/modpack-latest.zip" - name: REMOVE_OLD_MODS value: "TRUE" + + # Proper curseforge pack - name: TYPE - value: "FORGE" - - name: CUSTOM_SERVER_PROPERTIES - value: | - level-type=EarthCubic - level-name=big-world - view-distance=16 - vertical-view-distance=-1 + value: "CURSEFORGE" + - name: CF_SERVER_MOD + value: "/modpacks/modpack.zip" + + # Generic Forge configuration + #- name: TYPE + # value: "FORGE" + #- name: MODPACK + # value: "https://s3.clortox.com/minecraft-modpacks/modpack-latest.zip" + #- name: CUSTOM_SERVER_PROPERTIES + # value: | + # level-type=EarthCubic + # level-name=big-world + # view-distance=16 + # vertical-view-distance=-1 - name: ICON value: "https://s3.clortox.com/minecraft-modpacks/server-icon.png"