mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-18 06:43:05 +08:00
docs: add native Japanese translation of ECC documentation (ja-JP)
Translate everything-claude-code repository to Japanese including: - 17 root documentation files - 60 agent documentation files - 80 command documentation files - 99 rule files across 18 language directories (common, angular, arkts, cpp, csharp, dart, fsharp, golang, java, kotlin, perl, php, python, ruby, rust, swift, typescript, web) - 199 skill documentation files Total: 455 files translated to Japanese with: - Consistent terminology glossary applied throughout - YAML field names preserved in English (name, description, etc.) - Code blocks and examples untouched (comments translated) - Markdown structure and relative links preserved - Professional translation maintaining technical accuracy This translation expands ECC accessibility to Japanese-speaking developers and teams. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
93
docs/ja-JP/skills/docker-patterns/SKILL.md
Normal file
93
docs/ja-JP/skills/docker-patterns/SKILL.md
Normal file
@@ -0,0 +1,93 @@
|
||||
---
|
||||
name: docker-patterns
|
||||
description: Docker イメージの構築、最適化、マルチステージビルド、ネットワーク、ボリューム管理。本番環境デプロイメント用のベストプラクティス。
|
||||
origin: ECC
|
||||
---
|
||||
|
||||
# Docker パターン
|
||||
|
||||
本番環境対応のDocker イメージとコンテナ。
|
||||
|
||||
## 使用時期
|
||||
|
||||
- Dockerfile を書く
|
||||
- イメージサイズを最適化
|
||||
- マルチステージビルド
|
||||
- ネットワークと永続化を設定
|
||||
- デプロイメント戦略
|
||||
|
||||
## Dockerfile ベストプラクティス
|
||||
|
||||
### 1. イメージサイズを最小化
|
||||
|
||||
```dockerfile
|
||||
FROM node:18-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
FROM node:18-alpine
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
CMD ["node", "server.js"]
|
||||
```
|
||||
|
||||
### 2. レイヤー最適化
|
||||
|
||||
```dockerfile
|
||||
# キャッシュを活用するため、変更がない部分を上に
|
||||
FROM node:18-alpine
|
||||
WORKDIR /app
|
||||
|
||||
# 依存関係(変更が少ない)
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
# アプリケーション(頻繁に変更)
|
||||
COPY . .
|
||||
|
||||
CMD ["node", "server.js"]
|
||||
```
|
||||
|
||||
### 3. セキュリティ
|
||||
|
||||
- root ユーザーで実行しない
|
||||
- シークレットを避ける
|
||||
- ヘルスチェック追加
|
||||
|
||||
```dockerfile
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||
CMD node healthcheck.js
|
||||
```
|
||||
|
||||
## docker-compose
|
||||
|
||||
```yaml
|
||||
version: '3.8'
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
depends_on:
|
||||
- db
|
||||
db:
|
||||
image: postgres:15
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=secret
|
||||
```
|
||||
|
||||
## チェックリスト
|
||||
|
||||
- [ ] イメージサイズ最適化
|
||||
- [ ] セキュリティスキャン
|
||||
- [ ] ヘルスチェック
|
||||
- [ ] ログ管理
|
||||
- [ ] ネットワーク構成
|
||||
|
||||
詳細については、ドキュメントを参照してください。
|
||||
Reference in New Issue
Block a user