From dbf9cc9bbb32d96f6548ccc421267a97f421c75e Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Sat, 16 Dec 2023 23:59:33 -0500 Subject: [PATCH] Update to new curseforge modpack --- games/minecraft/minecraft-deployment.yaml | 42 +++++++++++------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/games/minecraft/minecraft-deployment.yaml b/games/minecraft/minecraft-deployment.yaml index e7fdb31..856d10d 100644 --- a/games/minecraft/minecraft-deployment.yaml +++ b/games/minecraft/minecraft-deployment.yaml @@ -13,21 +13,21 @@ 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/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 @@ -49,14 +49,14 @@ spec: - name: VERSION value: "1.12.2" - - name: GENERIC_PACK - value: "https://s3.clortox.com/minecraft-modpacks/modpack-latest.zip" + #- name: GENERIC_PACK + # value: "https://s3.clortox.com/minecraft-modpacks/modpack-latest.zip" - name: REMOVE_OLD_MODS value: "TRUE" - #- name: TYPE - # value: "CURSEFORGE" - #- name: CF_SERVER_MOD - # value: "/modpacks/modpack.zip" + - name: TYPE + value: "CURSEFORGE" + - name: CF_SERVER_MOD + value: "/modpacks/modpack.zip" #- name: USE_MODPACK_START_SCRIPT # value: "true"