forked from macrozheng/mall
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6052eb
commit d802ac3
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
app_name='mall-admin' | ||
docker stop ${app_name} | ||
echo '----stop container----' | ||
docker rm ${app_name} | ||
echo '----rm container----' | ||
docker rmi `docker images | grep none | awk '{print $3}'` | ||
echo '----rm none images----' | ||
docker run -p 8080:8080 --name ${app_name} \ | ||
--link mysql:db \ | ||
-v /etc/localtime:/etc/localtime \ | ||
-v /mydata/app/${app_name}/logs:/var/logs \ | ||
-d mall/${app_name}:1.0-SNAPSHOT | ||
echo '----start container----' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
app_name='mall-portal' | ||
docker stop ${app_name} | ||
echo '----stop container----' | ||
docker rm ${app_name} | ||
echo '----rm container----' | ||
docker rmi `docker images | grep none | awk '{print $3}'` | ||
echo '----rm none images----' | ||
docker run -p 8085:8085 --name ${app_name} \ | ||
--link mysql:db \ | ||
--link redis:redis \ | ||
--link mongo:mongo \ | ||
--link rabbitmq:rabbit \ | ||
-v /etc/localtime:/etc/localtime \ | ||
-v /mydata/app/${app_name}/logs:/var/logs \ | ||
-d mall/${app_name}:1.0-SNAPSHOT | ||
echo '----start container----' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
app_name='mall-search' | ||
docker stop ${app_name} | ||
echo '----stop container----' | ||
docker rm ${app_name} | ||
echo '----rm container----' | ||
docker rmi `docker images | grep none | awk '{print $3}'` | ||
echo '----rm none images----' | ||
docker run -p 8081:8081 --name ${app_name} \ | ||
--link mysql:db \ | ||
--link elasticsearch:es \ | ||
-v /etc/localtime:/etc/localtime \ | ||
-v /mydata/app/${app_name}/logs:/var/logs \ | ||
-d mall/${app_name}:1.0-SNAPSHOT | ||
echo '----start container----' |