Skip to content

Commit

Permalink
wip: test only LC_ALL works
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Apr 15, 2024
1 parent cd89d37 commit 397678c
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 13 deletions.
2 changes: 0 additions & 2 deletions docs/pages/deployment/k8s-only.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ This article focuses on deploying GZCTF in a Kubernetes cluster. For configurati
- name: GZCTF_ADMIN_PASSWORD
value: xxx # Admin password
# choose your backend language `en_US` / `zh_CN` / `ja_JP`
- name: LANG
value: en_US.UTF-8
- name: LC_ALL
value: en_US.UTF-8
ports:
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/deployment/k8s-only.ja.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ import { Callout } from "nextra-theme-docs";
- name: GZCTF_ADMIN_PASSWORD
value: xxx # 管理者パスワード
# choose your backend language `en_US` / `zh_CN` / `ja_JP`
- name: LANG
value: ja_JP.UTF-8
- name: LC_ALL
value: ja_JP.UTF-8
ports:
Expand Down
2 changes: 0 additions & 2 deletions docs/pages/deployment/k8s-only.zh.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ import { Callout } from "nextra-theme-docs";
- name: GZCTF_ADMIN_PASSWORD
value: xxx # 管理员密码
# choose your backend language `en_US` / `zh_CN` / `ja_JP`
- name: LANG
value: zh_CN.UTF-8
- name: LC_ALL
value: zh_CN.UTF-8
ports:
Expand Down
1 change: 0 additions & 1 deletion docs/pages/quick-start.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ You will need to install Docker and docker-compose to get started with GZCTF. Yo
environment:
- "GZCTF_ADMIN_PASSWORD=<Your GZCTF_ADMIN_PASSWORD>"
# choose your backend language `en_US` / `zh_CN` / `ja_JP`
- "LANG=en_US.UTF-8"
- "LC_ALL=en_US.UTF-8"
ports:
- "80:8080"
Expand Down
1 change: 0 additions & 1 deletion docs/pages/quick-start.ja.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ GZCTF の使用をすぐに開始するには、Docker と docker-compose をイ
environment:
- "GZCTF_ADMIN_PASSWORD=<Your GZCTF_ADMIN_PASSWORD>"
# choose your backend language `en_US` / `zh_CN` / `ja_JP`
- "LANG=ja_JP.UTF-8"
- "LC_ALL=ja_JP.UTF-8"
ports:
- "80:8080"
Expand Down
1 change: 0 additions & 1 deletion docs/pages/quick-start.zh.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ GZCTF 的安全性和前端功能(如操作剪贴板)依赖于 HTTPS,此
environment:
- "GZCTF_ADMIN_PASSWORD=<Your GZCTF_ADMIN_PASSWORD>"
# choose your backend language `en_US` / `zh_CN` / `ja_JP`
- "LANG=zh_CN.UTF-8"
- "LC_ALL=zh_CN.UTF-8"
ports:
- "80:8080"
Expand Down
3 changes: 1 addition & 2 deletions src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ RUN dotnet publish "GZCTF.csproj" -c Release -o /app/publish -r linux-x64 --no-s
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS final

ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8

WORKDIR /app
EXPOSE 8080
Expand Down
3 changes: 1 addition & 2 deletions src/GZCTF/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ RUN cp -r /build/${TARGETPLATFORM} /publish
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS final

ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false \
LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8

WORKDIR /app
EXPOSE 8080
Expand Down

0 comments on commit 397678c

Please sign in to comment.