Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ワールドを作成するコマンドが起動時に実行されるようにする #1525

Merged
merged 2 commits into from
Dec 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,14 @@ spec:
- name: CFG_DISCORDSRV_CONSOLE_CHANNEL_ID
value: "1054159676964622426"

- name: RCON_CMDS_STARTUP
value: |
gamerule keepInventory true
mv create world_SW NORMAL
mv create world_SW_2 NORMAL
mv create world_SW_nether NETHER
mv create world_SW_the_end END

image: ghcr.io/giganticminecraft/seichi_minecraft_server_debug_base_1_18_2:sha-1267b49
name: minecraft
ports:
Expand All @@ -132,6 +140,19 @@ spec:
failureThreshold: 6
periodSeconds: 20

readinessProbe:
exec:
command:
- mc-monitor
- status
- --host
- localhost
- --port
- "25565"
initialDelaySeconds: 30
periodSeconds: 5
failureThreshold: 18

volumeMounts:
# itzg/minecraft-server は /config に設定ファイルをマウントしておけばコピーをしてくれる。
# 環境変数の置き換えはPrefix等の設定が必要なので、必要になったら設定するように。
Expand Down