-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix register server ip addr wrong bug
- Loading branch information
Showing
5 changed files
with
47 additions
and
6 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,23 @@ | ||
#!/bin/sh | ||
|
||
SERVICES='etcd mysql redis mongo registry' | ||
|
||
echo "stopping all services..." | ||
docker stop `echo $SERVICES` | ||
docker rm `echo $SERVICES` | ||
|
||
echo "starting etcd" | ||
docker run -d --name etcd elcolio/etcd | ||
|
||
echo "starting mysql" | ||
docker run -d --name mysql -e MYSQL_ALLOW_EMPTY_PASSWORD=true mysql | ||
docker run -it --link mysql --rm mysql sh -c 'exec mysql -hmysql -e"CREATE DATABASE PandoCloud"' | ||
|
||
echo "starting redis" | ||
docker run -d --name redis redis | ||
|
||
echo "starting mongo" | ||
docker run -d --name mongo mongo | ||
|
||
echo "starting registry" | ||
docker run -d --name registry --link etcd --link mysql pandocloud/pando-cloud registry -etcd http://etcd:2379 -rpchost internal:20034 -aeskey ABCDEFGHIJKLMNOPABCDEFGHIJKLMNOP -dbhost mysql -dbname PandoCloud -dbport 3306 -dbuser root -loglevel debug |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
docker#!/bin/sh | ||
|
||
# restore dependency packages. | ||
cd $GOPATH/src/github.com/PandoCloud/pando-cloud | ||
|
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
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
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