Browse Source

Fix the path problem, which will build the mysql image as the gogits image

for-closed-social
Lance Ju 10 years ago
parent
commit
b1a3ba9932
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      dockerfiles/build.sh

+ 2
- 2
dockerfiles/build.sh View File

@ -13,13 +13,13 @@ cd images/mysql
docker build -t gogs/mysql . docker build -t gogs/mysql .
# #
## Build the gogits image ## Build the gogits image
cd images/gogits
cd ../gogits
docker build -t gogs/gogits . docker build -t gogs/gogits .
# #
## Run MySQL image with name ## Run MySQL image with name
docker run -d --name $MYSQL_RUN_NAME gogs/mysql docker run -d --name $MYSQL_RUN_NAME gogs/mysql
# #
## Run gogits image and link it to the MySQL image ## Run gogits image and link it to the MySQL image
echo "Now we have the MySQL image(running) and gogs image, use the follow command to start gogs service:9;
echo "Now we have the MySQL image(running) and gogs image, use the follow command to start gogs service:4;
echo -e "\033[33m docker run -i -t --link $MYSQL_RUN_NAME:db -p $HOST_PORT:3000 gogs/gogits \033[0m" echo -e "\033[33m docker run -i -t --link $MYSQL_RUN_NAME:db -p $HOST_PORT:3000 gogs/gogits \033[0m"

Loading…
Cancel
Save