Skip to content

Commit

Permalink
fix: mariadb Docker datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
SeorinY committed Oct 14, 2024
1 parent 9f5dfef commit 66847d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions deploy/scripts/buildInfra.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ source /etc/environment
TIME="$(date +%Y)-$(date +%m)-$(date +%d) $(date +%H):$(date +%M):$(date +%S)"


#if [ -z "$(docker ps | grep fit-mariadb)" ]; then
# echo "[$TIME] > Start running f-it Mariadb." >> /home/ubuntu/app/deploy/deploy.log
# docker-compose -f /home/ubuntu/app/deploy/docker/docker-compose.infra.yml pull mariadb \
# && docker-compose -f /home/ubuntu/app/deploy/docker/docker-compose.infra.yml up -d mariadb
#else
# echo "[$TIME] > f-it MariaDB is already running." >> /home/ubuntu/app/deploy/deploy.log
#fi
if [ -z "$(docker ps | grep fit-mariadb)" ]; then
echo "[$TIME] > Start running f-it Mariadb." >> /home/ubuntu/app/deploy/deploy.log
docker-compose -f /home/ubuntu/app/deploy/docker/docker-compose.infra.yml pull mariadb \
&& docker-compose -f /home/ubuntu/app/deploy/docker/docker-compose.infra.yml up -d mariadb
else
echo "[$TIME] > f-it MariaDB is already running." >> /home/ubuntu/app/deploy/deploy.log
fi

if [ -z "$(docker ps | grep fit-redis)" ]; then # redis 가 돌아가지 않고 있음
echo "[$TIME] > Start running f-it Redis." >> /home/ubuntu/app/deploy/deploy.log
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config

0 comments on commit 66847d6

Please sign in to comment.