Skip to content

Commit acbbe1f

Browse files
committed
docs: recommend using GZCTF Challenge Base image for challenge containers
1 parent c0c81b6 commit acbbe1f

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

docs/en/guide/start/quick-start.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,6 @@ Challenges configuration and examples can be found in the [GZCTF-Challenges](htt
197197

198198
You can also refer to and learn from the public challenges repository of [W4terCTF 2023](https://github.com/W4terDr0p/W4terCTF-2023). The challenges in this repository try to ensure that the Docker Image is small enough to be quickly deployed during the competition while keeping the challenges working properly.
199199

200+
It is recommended to use the [GZCTF Challenge Base](https://github.com/GZCTF/challenge-base) image as the base image for your challenge containers. We have minimized these base images as much as possible and update them regularly; using them can ensure that your challenge containers share image layers to the greatest extent possible, reducing storage space usage and image pull times.
201+
200202
GZCTF distributes dynamic flags by injecting the `GZCTF_FLAG` environment variable into the container, so please make sure that the text in this environment variable is placed in the appropriate location in the **container initialization script** of the challenge. Please note that this environment variable is initialized when the container is started, not when the container image is built.

docs/ja/guide/start/quick-start.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,6 @@ ghcr.io/gztimewalker/gzctf/gzctf:latest
198198
199199
また、[W4terCTF 2023](https://github.com/W4terDr0p/W4terCTF-2023) の公開チャレンジを参照することもできます。ここでのチャレンジはすべて、Docker イメージのサイズが確実に小さくなるように設計されています。チャレンジが正常に機能している場合は十分ですが、ゲーム中に迅速にデプロイするには十分です。
200200
201+
チャレンジ コンテナのベース イメージとして [GZCTF Challenge Base](https://github.com/GZCTF/challenge-base) を使用することをお勧めします。これらのベース イメージは可能な限り最小限に抑え、定期的に更新しています。これらを使用することで、チャレンジ コンテナがイメージ レイヤーを最大限に共有できるようになり、ストレージ スペースの使用量とイメージ プル時間を短縮できます。
202+
201203
GZCTF は、`GZCTF_FLAG` 環境変数をコンテナに挿入することで動的なフラッグ配布が実装されています。そのため、この環境変数のテキストがチャレンジの**コンテナ初期化スクリプト**内の適切な場所に配置されていることを確認してください。 この環境変数は、コンテナー イメージのビルド時ではなく、コンテナーの起動時に初期化されることに注意してください。

docs/zh/guide/start/quick-start.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,4 +208,6 @@ registry.cn-shanghai.aliyuncs.com/gztime/gzctf:latest
208208

209209
也可以参考和借鉴 [W4terCTF 2023](https://github.com/W4terDr0p/W4terCTF-2023) 的公开题目仓库,此内的题目均在题目正常工作的情况下尽量保证 Docker Image 的体积足够小,以便于在比赛中快速部署。
210210

211+
建议使用 [GZCTF Challenge Base](https://github.com/GZCTF/challenge-base) 镜像作为题目容器的基础镜像,我们尽可能最小化了这些基础镜像,并定期更新;利用他们可以确保题目容器最大限度共享镜像层,减少存储空间占用和镜像拉取时间。
212+
211213
GZCTF 通过将 `GZCTF_FLAG` 环境变量注入到容器中来实现动态 flag 的分发,因此请确保题目**的容器初始化脚本**中将这个环境变量中的文本放入到合适的位置。请注意,这一环境变量的初始化是在容器启动时进行的,而非容器镜像构建时。

0 commit comments

Comments
 (0)