Skip to content

Commit 69365db

Browse files
authored
chore: 문서, 스크립트 파일들 폴더 변경 (#390)
* chore: infra 관련 설정 파일 위치 이동 * chore: 스크립트 파일 위치 이동 * refactor: 위치 변경에 따른 상대 경로 수정 * chore: 경로와 관련된 변수 분리
1 parent 187e9e7 commit 69365db

File tree

5 files changed

+28
-24
lines changed

5 files changed

+28
-24
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
set -e
44

5+
BASE_DIR="$(cd "$(dirname "$0")/../.." && pwd)"
6+
57
echo "Stopping all docker containers..."
6-
docker compose -f docker-compose.local.yml down
8+
docker compose -f "${BASE_DIR}/docker-compose.local.yml" down
79

810
echo "Pruning unused Docker images..."
911
docker image prune -f

docs/script/local_compose_up.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
# 명령이 0이 아닌 종료값을 가질때 즉시 종료
4+
set -e
5+
6+
BASE_DIR="$(cd "$(dirname "$0")/../.." && pwd)"
7+
8+
if [ ! -d "${BASE_DIR}/mysql_data_local" ]; then
9+
echo "mysql_data_local 디렉토리가 없습니다. ${BASE_DIR}/mysql_data_local 디렉토리를 생성합니다."
10+
mkdir -p "${BASE_DIR}/mysql_data_local"
11+
fi
12+
13+
if [ ! -d "${BASE_DIR}/redis_data_local" ]; then
14+
echo "redis_data_local 디렉토리가 없습니다. ${BASE_DIR}/redis_data_local 디렉토리를 생성합니다."
15+
mkdir -p "${BASE_DIR}/redis_data_local"
16+
fi
17+
18+
echo "Starting all docker containers..."
19+
docker compose -f "${BASE_DIR}/docker-compose.local.yml" up -d
20+
21+
echo "Pruning unused Docker images..."
22+
docker image prune -f
23+
24+
echo "Containers are up and running."
25+
docker compose ps -a

local_compose_up.sh

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

0 commit comments

Comments
 (0)