Generate per-game docker-compose examples from structured game data (e.g. ports)
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- docker, json, shell, yaml
- 領域
- build-system, devops
調査の方向性
Start with generate-dockerfiles.sh and generate-docker-compose.sh, which read serverlist.csv and pass four separate environment variables to the templates. Then check the default port values in lgsm/config-default/config-lgsm/<shortname>server/_default.cfg and the publish workflow's matrix. Done means each game gets one structured record that reaches the templates as game.*, with its default ports in the compose output, and the matrix and image names stay unchanged. Reading PR #103 first is worthwhile, since it covers part of this design.
索引モデルが issue の本文から書いたものです。
説明
Idea
Generate each game's docker-compose example (and Dockerfile, where useful) from richer per-game data, so the examples are correct for that game out of the box. For example, publish the game's default ports rather than a generic example.
Today
generate-dockerfiles.sh and generate-docker-compose.sh read LinuxGSM's serverlist.csv, which has only four fields per game: shortname, server name, game name and distro. The templates get those as separate environment variables, so there is nothing game-specific to put in the compose examples beyond the name and image tag.
Possible approach
- Build one structured record per game (for example JSON). Start with the four
serverlist.csvfields, and add data read from LinuxGSM, such as default ports fromlgsm/config-default/config-lgsm/<shortname>server/_default.cfg. - Pass each game's record to the Jinja templates as one object (
game.shortname,game.ports, and so on). - Keep the publish workflow's matrix as a list (
{"include":[{"shortname":"..."}]}), thedockerfiles/Dockerfile-<shortname>names, and theghcr.iobase image.
Background
#103 (B13rg, 2024) started the refactor towards per-game JSON records but stopped before adding any new data, and it no longer fits the current generator and workflow. Its JSON conversion with yq and its game.* template variables are a useful starting point.
- 主要言語
- Shell
- スター
- 345
- フォーク
- 25
- 平均マージ
- 12時間 12分
- マージ済み PR(30日)
- 9
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GameServerManagers/docker-gameserver のほかの issue
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
GameServerManagers/docker-gameserver#144 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
GameServerManagers/docker-gameserver#142 · コメント 2 件 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
GameServerManagers/docker-gameserver#113 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
GameServerManagers/docker-gameserver#100 · コメント 2 件 ·
GameServerManagers/docker-gameserver の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
glossyio/traffic-monitor#256 ·
メンテナーはふだん 1 日以内に返信
-
source:reader type:content-error
難易度 1/5 1〜3時間 初心者へのやさしさ 84/100
stephrobert/blog-roadmap#121 ·
-
lesson-submission pending-review
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
Ikalus1988/MisakaNet#3899 ·
メンテナーはふだん 1 日以内に返信
-
sync with NCO's changes
難易度 1/5 1時間未満 初心者へのやさしさ 82/100