Skip to content

Commit d3271be

Browse files
authored
Merge pull request #110 from krsy0411/krsy0411-ops
[Operation] YAML 파일 추가&수정, ESLint 설정 변경, 모니터링 도구 도입
2 parents 79f1245 + 610d316 commit d3271be

19 files changed

Lines changed: 1596 additions & 752 deletions

.dockerignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Node.js
2+
node_modules
3+
npm-debug.log
4+
*.log
5+
yarn-error.log
6+
7+
# Git
8+
.git
9+
.gitignore
10+
11+
# OS 및 IDE 특정 파일
12+
.DS_Store
13+
Thumbs.db
14+
.idea/
15+
.vscode/
16+
*.swp
17+
18+
# 민감한 정보 또는 로컬 환경 파일
19+
.env
20+
*.env.local

.eslintrc.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/copilot-instructions.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# GitHub Copilot Instructions for Docker Korea Documentation
2+
3+
## Project Overview
4+
5+
This is a Korean translation project for Docker documentation. This project aims to make Docker documentation accessible to Korean speakers by providing translated content.
6+
7+
## Guidelines
8+
9+
### Translation
10+
11+
- Maintain consistency with existing translations.
12+
- Follow the style guide in SYTLE_GUIDE.md.
13+
- When translating technical terms, keep the original term in parentheses on first mention.
14+
- Be respectful of Korean language conventions, using formal language style.
15+
16+
### Code
17+
18+
- All code examples should remain in English.
19+
- Code comments may be translated to Korean.
20+
- Inline code blocks using backticks (`) should remain untouched.
21+
22+
### Markdown
23+
24+
- Preserve the original markdown structure.
25+
- Don't change image paths or links unless specifically required.
26+
- Maintain heading hierarchy (h1, h2, h3, etc.).
27+
28+
### File Structure
29+
30+
- Keep the same file structure as the original.
31+
- Don't move or rename files without explicit instruction.
32+
33+
### Tailwind CSS
34+
35+
- When adding new styles, use Tailwind CSS classes when possible.
36+
- Follow the existing design patterns in the project.
37+
38+
### TypeScript
39+
40+
- Follow TypeScript best practices.
41+
- Ensure proper typing for all functions and variables.
42+
43+
### Commits
44+
45+
- Write commit messages in Korean, prefixed with [translate] or [fix] or [ui] as appropriate.
46+
- Keep commits focused on specific changes.
47+
48+
### Runtime
49+
50+
- Code should work in modern browsers.
51+
- Consider mobile responsiveness.
52+
53+
### Additional Guidelines
54+
55+
- Codes are written in English, but answers are in Korean.

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "*"
7+
8+
jobs:
9+
build-test-lint-typecheck:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: 코드 체크아웃
13+
uses: actions/checkout@v4
14+
15+
- name: Node.js 설정
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 22
19+
cache: 'npm'
20+
21+
- name: 의존성 설치
22+
run: npm ci
23+
24+
- name: Vite 프로젝트 빌드
25+
run: npm run build
26+
27+
- name: 린트 체크
28+
run: npm run lint:check
29+
30+
- name: 프리티어 체크
31+
run: npm run prettier:check
32+
33+
- name: 타입 체크
34+
run: npm run type:check || echo "No type:check script"
35+
36+
- name: 테스트
37+
run: npm run test || echo "No test script defined"

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
- name: Node.js 설정
2020
uses: actions/setup-node@v4
2121
with:
22-
node-version: 18
22+
node-version: 22
2323
cache: 'npm'
2424

2525
- name: 의존성 설치
26-
run: npm install
26+
run: npm ci
2727

2828
- name: Vite 프로젝트 빌드
2929
run: npm run build

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Node.js 23 버전의 경량 Alpine Linux 이미지를 사용합니다.
2+
FROM node:23-alpine
3+
4+
# 작업 디렉토리를 /app으로 설정합니다.
5+
WORKDIR /app
6+
7+
# 의존성 설치를 위해 패키지 매니페스트 파일을 복사합니다.
8+
COPY package.json package-lock.json* ./
9+
10+
# npm ci를 사용하여 빠르고 안전하게 의존성을 설치합니다.
11+
RUN npm ci
12+
13+
# 소스 코드는 볼륨 마운트로 연결하므로 COPY . . 는 필요 없음
14+
15+
# Vite 개발 서버 기본 포트 (참고용, 실제 포트 매핑은 docker-compose.yml에서 관리)
16+
EXPOSE 5173
17+
18+
# 컨테이너 시작 시 실행될 명령어
19+
CMD ["npm", "run", "dev", "--", "--host"]

docker-compose.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: "1.0.0"
2+
services:
3+
web:
4+
container_name: docker-ko-dev
5+
build:
6+
context: .
7+
dockerfile: Dockerfile
8+
ports:
9+
- "5173:5173"
10+
volumes:
11+
- ./:/app
12+
- /app/node_modules
13+
environment:
14+
- NODE_ENV=development

eslint.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import tseslint from "typescript-eslint";
4+
import { defineConfig, globalIgnores } from "eslint/config";
5+
6+
7+
export default defineConfig([globalIgnores(["dist/**"]),
8+
{ files: ["src/*.{js,mjs,cjs,ts,mts,cts}"], plugins: { js }, extends: ["js/recommended"] },
9+
{ files: ["src/*.{js,mjs,cjs,ts,mts,cts}"], languageOptions: { globals: globals.browser } },
10+
tseslint.configs.recommended,
11+
]);

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
crossorigin="anonymous"
1010
></script>
1111
<script type="module" src="./src/scripts/main.ts"></script>
12+
<!-- Application Insights 스크립트는 main.ts에서 운영 환경에서만 동적으로 삽입됩니다. -->
1213
<link
1314
rel="icon"
1415
type="image/svg+xml"

0 commit comments

Comments
 (0)