Add chown init container
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Tyler Perkins 2023-12-23 21:03:40 -05:00
parent e7b17e5225
commit 201fb15e0f
Signed by: tyler
GPG Key ID: 03B27509E17EFDC8
1 changed files with 11 additions and 16 deletions

View File

@ -13,22 +13,17 @@ 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/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"
initContainers:
- name: modpack-downloader
image: alpine:latest
volumeMounts:
- name: minecraft-data
mountPath: /data
command: ["/bin/sh"]
args:
- "-c"
- |
chown -R 1000:1000 /data
containers:
- name: minecraft
image: itzg/minecraft-server:java8-jdk