Skip to content

Commit

Permalink
Merge pull request #24 from Strato-YangSungHun/main
Browse files Browse the repository at this point in the history
install script update
  • Loading branch information
Strato-YangSungHun authored Sep 9, 2024
2 parents 12d4af7 + 7c3b7a6 commit 5f4bd17
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion script/build-mc-application.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ echo "build mc-application-manager"


echo "docker build"
docker build -t mc-application-manager:v0.0.1 .
sudo docker build -t mc-application-manager:v0.2.1 .
16 changes: 9 additions & 7 deletions script/run-mc-application.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
#!/bin/bash

APP_NAME=mc-application-manager
APP_IMAGE=mc-application-manager:v0.0.1
APP_IMAGE=mc-application-manager:v0.2.1

echo -e "Start ${LGREEN} $APP_NAME ${NC}"

docker run -itd \
-p 18085:18085 \
-e DB_USER_NAME=root \
-e DB_PWD=mcmp \
sudo docker run -itd \
-p 18084:18084 \
-e DB_USER_NAME=mcmp \
-e DB_PWD=mcmp1234 \
-e DB_URL=localhost:3306 \
--name mc-application-manager \
$APP_IMAGE
-e DDL_AUTO=create \
-e SQL_DATA_INIT=always \
--name mc-application-manager \
$APP_IMAGE

0 comments on commit 5f4bd17

Please sign in to comment.