-
Notifications
You must be signed in to change notification settings - Fork 8
chore: 문서, 스크립트 파일들 폴더 변경 #390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,25 @@ | ||||||||||||||||||||||
| #!/bin/bash | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| # 명령이 0이 아닌 종료값을 가질때 즉시 종료 | ||||||||||||||||||||||
| set -e | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| BASE_DIR="$(cd "$(dirname "$0")/../.." && pwd)" | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| if [ ! -d "${BASE_DIR}/mysql_data_local" ]; then | ||||||||||||||||||||||
| echo "mysql_data_local 디렉토리가 없습니다. ${BASE_DIR}/mysql_data_local 디렉토리를 생성합니다." | ||||||||||||||||||||||
| mkdir -p "${BASE_DIR}/mysql_data_local" | ||||||||||||||||||||||
| fi | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| if [ ! -d "${BASE_DIR}/redis_data_local" ]; then | ||||||||||||||||||||||
| echo "redis_data_local 디렉토리가 없습니다. ${BASE_DIR}/redis_data_local 디렉토리를 생성합니다." | ||||||||||||||||||||||
| mkdir -p "${BASE_DIR}/redis_data_local" | ||||||||||||||||||||||
| fi | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| echo "Starting all docker containers..." | ||||||||||||||||||||||
| docker compose -f "${BASE_DIR}/docker-compose.local.yml" up -d | ||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion ③ +if [ ! -f "${BASE_DIR}/docker-compose.local.yml" ]; then
+ echo "❌ ${BASE_DIR}/docker-compose.local.yml 파일을 찾을 수 없습니다." >&2
+ exit 1
+fi
+
docker compose -f "${BASE_DIR}/docker-compose.local.yml" up -d📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||
|
|
||||||||||||||||||||||
| echo "Pruning unused Docker images..." | ||||||||||||||||||||||
| docker image prune -f | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| echo "Containers are up and running." | ||||||||||||||||||||||
| docker compose ps -a | ||||||||||||||||||||||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
①
set옵션을 강화해 스크립트 안전성을 높여주세요.📝 Committable suggestion
🤖 Prompt for AI Agents