index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
dockerfiles
/
run.sh
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Unknown <joe2010xtmf@163.com>
2014-04-11 12:16:17 -0400
committer
Unknown <joe2010xtmf@163.com>
2014-04-11 12:16:17 -0400
commit
b26df298651018f5787a545c765856aed1cf94e4
(
patch
)
tree
13a53b99bccbc1e4096b1639cad504d956c8bb03
/
dockerfiles/run.sh
parent
23e318f85a912d84c5621eb0a8e09465bf37a3cb
(
diff
)
parent
0650c3c9f609ba833c29fa120a34f15c0f064b54
(
diff
)
Merge branch 'master' of github.com:gogits/gogs into dev
Diffstat
(limited to 'dockerfiles/run.sh')
-rwxr-xr-x
dockerfiles/run.sh
13
1 files changed, 13 insertions, 0 deletions
diff --git a/dockerfiles/run.sh b/dockerfiles/run.sh
new file mode 100755
index 00000000..7721ab41
--- /dev/null
+++ b/
dockerfiles/run.sh
@@ -0,0 +1,13 @@
+# Configs
+MYSQL_PASSWORD="kuajie8402"
+MYSQL_RUN_NAME="gogs_mysql"
+typeset -u MYSQL_ALIAS
+MYSQL_ALIAS="db"
+HOST_PORT="3000"
+
+## Run MySQL image with name
+docker run -d --name $MYSQL_RUN_NAME gogs/mysql
+#
+## Run gogits image and link it to the MySQL image
+docker run --link $MYSQL_RUN_NAME:$MYSQL_ALIAS -p $HOST_PORT:3000 gogs/gogits
+