File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 88 AfterInstall :
99 - location : deploy.sh
1010 timeout : 300
11- runas : ubuntu
11+ runas : root
Original file line number Diff line number Diff line change 11#! /bin/bash
22cd /home/ubuntu/gdgoc-be-app
33
4+ # Docker & Docker Compose가 설치되어 있는지 확인
5+ if ! [ -x " $( command -v docker) " ]; then
6+ echo " Docker가 설치되어 있지 않습니다. 설치 중..."
7+ sudo apt update
8+ sudo apt install -y docker.io
9+ sudo systemctl start docker
10+ sudo systemctl enable docker
11+ echo " Docker 설치 완료"
12+ fi
13+
14+ if ! [ -x " $( command -v docker-compose) " ]; then
15+ echo " Docker Compose가 설치되어 있지 않습니다. 설치 중..."
16+ sudo curl -L " https://github.com/docker/compose/releases/latest/download/docker-compose-$( uname -s) -$( uname -m) " -o /usr/local/bin/docker-compose
17+ sudo chmod +x /usr/local/bin/docker-compose
18+ echo " Docker Compose 설치 완료"
19+ fi
20+
421# 기존 컨테이너 중지 및 삭제
522docker-compose down
623
You can’t perform that action at this time.
0 commit comments