genericize the container run commands by normalizing file names
This commit is contained in:
@@ -8,7 +8,7 @@ WORKDIR /mc_data
|
|||||||
RUN chown -R minecraft:minecraft .
|
RUN chown -R minecraft:minecraft .
|
||||||
|
|
||||||
# Copy the modpack
|
# Copy the modpack
|
||||||
COPY the-1122-pack/the-1122-pack_1.3.7.zip /the-1122-pack/the-1122-pack_1.3.7.zip
|
COPY the-1122-pack/the-1122-pack_1.3.7.zip /the-1122-pack/the-1122-pack.zip
|
||||||
RUN chown -R minecraft:minecraft /the-1122-pack
|
RUN chown -R minecraft:minecraft /the-1122-pack
|
||||||
|
|
||||||
USER minecraft
|
USER minecraft
|
||||||
|
|||||||
@@ -18,7 +18,15 @@ spec:
|
|||||||
image: {{ .Values.image }}
|
image: {{ .Values.image }}
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
command: ["/bin/bash"]
|
command: ["/bin/bash"]
|
||||||
args: ["-c", "unzip -n -d . /the-1122-pack/the-1122-pack_1.3.7.zip"]
|
args: ["-c", "unzip -o -d . /the-1122-pack/the-1122-pack.zip"]
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /mc_data
|
||||||
|
name: data
|
||||||
|
- name: rename
|
||||||
|
image: {{ .Values.image }}
|
||||||
|
imagePullPolicy: Always
|
||||||
|
command: ["/bin/bash"]
|
||||||
|
args: ["-c", "mv $(find . -d 1 -name forge\*.jar) forge.jar"]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /mc_data
|
- mountPath: /mc_data
|
||||||
name: data
|
name: data
|
||||||
@@ -38,7 +46,7 @@ spec:
|
|||||||
image: {{ .Values.image }}
|
image: {{ .Values.image }}
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
command: ["/bin/bash"]
|
command: ["/bin/bash"]
|
||||||
args: ["-c", 'java -server -Xmx"$MAX_RAM"G -Dfml.queryResult=confirm -jar forge-1.12.2-14.23.5.2855.jar nogui']
|
args: ["-c", 'java -server -Xmx"$MAX_RAM"G -Dfml.queryResult=confirm -jar forge.jar nogui']
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 25565
|
- containerPort: 25565
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|||||||
Reference in New Issue
Block a user