docker@boot2docker:~$ docker images
docker@boot2docker:~$ docker run -t -i -p 50002:8080 chukong/quick-server:0.4.0
|root@ID| exit
docker@boot2docker:~$ docker commit ID chukong/quick-server:0.4.0
docker@boot2docker:~$ docker run -d -p 50003:22 chukong/quick-server:0.4.0 /usr/sbin/sshd -D
|root@ID| cd /home/sure52 |root@ID| mkdir qs_code |root@ID| chmod o+w -R qs_code |root@ID| cd qs_code |root@ID| git init |root@ID| vim README.md |root@ID| git add "." |root@ID| git commit -m "base version" |root@ID| git remote add origin ssh://sure52@127.0.0.1/home/sure52/qs_code/.git |root@ID| git push origin |root@ID| git remote show origin
E:\> git clone ssh://sure52@192.168.59.103:50003/home/sure52/qs_code/.git
|root@ID| chmod -R 777 .git
|root@ID| cd .git |root@ID| vi config
curl "http://192.168.59.103:50002/_server/user/session/?id=sure52"
userDefinedCodes = { luaRepoPrefix = "server.user_codes", localRepo = "/home/sure52/qs_code/", localDest = "/opt/qs/openresty/server/user_codes", --localRepo = "/home/cheeray/work/user_codes", --localDest = "/home/cheeray/work/quick-server/src/server/user_codes", uriPrefix = { module1 = "http_test1", module2 = "http_test2", }, },
curl "http://192.168.59.103:50002/_Server/user/uploadcodes?commit=f54ab5e0ddd0d93b55ae4f9169c25caf52a88392&session_id=f56b3cb7fc96dfb25e501c56e8f9b057"
curl "http://192.168.59.103:50002/http_test1/Say/SayHello?session_id=f56b3cb7fc96dfb25e501c56e8f9b057&name=a_name"