1 | docker@boot2docker:~$ docker images |
1 | docker@boot2docker:~$ docker run -t -i -p 50002:8080 chukong /quick-server :0.4.0 |
1 | |root@ID| exit |
1 | docker@boot2docker:~$ docker commit ID chukong /quick-server :0.4.0 |
1 | docker@boot2docker:~$ docker run -d -p 50003:22 chukong /quick-server :0.4.0 /usr/sbin/sshd -D |
1 2 3 4 5 6 7 8 9 10 11 12 | |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 |
1 | E:\> git clone ssh://sure52@192.168.59.103:50003/home/sure52/qs_code/.git |
1 | |root@ID| chmod -R 777 .git |
1 2 | |root@ID| cd .git |root@ID| vi config |
1 2 3 4 5 6 7 8 9 10 11 | 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" , }, }, |