TAT以下是折腾docker折腾quick-server0.4.0的经历,而非过程
查看镜像:
docker@boot2docker:~$ docker images
运行镜像并进到bash模式,映射8080端口到宿主50002端口:
docker@boot2docker:~$ docker run -t -i -p 50002:8080 chukong/quick-server:0.4.0
关闭镜像并保存:
记下当前id: |root@ID| ←
docker@boot2docker:~$ docker commit ID chukong/quick-server:0.4.0
开启ssh后台运行镜像:
docker@boot2docker:~$ docker run -d -p 50003:22 chukong/quick-server:0.4.0 /usr/sbin/sshd -D
创建用户sure52:
|root@ID| useradd sure52
|root@ID| passwd sure52
建立git仓库:
|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
测试git仓库
E:\> git clone ssh://sure52@192.168.59.103:50003/home/sure52/qs_code/.git
push 无写权限remote: fatal: failed to write object解决:
|root@ID| chmod -R 777 .git
push master -> master (branch is currently checked out)出错解决:
|root@ID| cd .git
|root@ID| vi config
添加:
[receive]
denyCurrentBranch = ignore
Quick-Server取session_id:
curl "http://192.168.59.103:50002/_server/user/session/?id=sure52"
提交usercode:
本地路径结构:
module1/actions/SayHello.lua
提交至
/home/sure52/qs_code/module1/actions/Sayhello.lua
实际运行时
/opt/qs/openresty/server/user_codes/module1/actions/SayHello.lua
config.lua配置:
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"
sayHello:
curl "http://192.168.59.103:50002/http_test1/Say/SayHello?session_id=f56b3cb7fc96dfb25e501c56e8f9b057&name=a_name"
因为用的是坑爹windows……
让本机localhost:8088能直接连到容器内:(windows 127.0.0.1:8088->docker虚拟机192.168.59.103:50002->容器内x.x.x.x:8088)
在virtual box中做本机端口映射
VM -> 设置 -> 网络 -> 网卡1 -> 端口转发 添加
名称任意 协议:TCP 主机IP:127.0.0.1 主机端口:8088 子系统IP不填 子系统端口:50002
参考:
http://www.cnblogs.com/bjfuouyang/p/3798421.html
2018年10月08日 17:24
I do not know it.
2019年2月01日 05:16
Another great selection of <a href="https://islamabad-escorts69.tumblr.com/">Islamabad escorts</a> we provide are mature married women who are basically housewives sitting around doing nothing at home and looking for excessive income to cover their daily expenses or those who are not happy with their husbands and husbands. want to have something else Private fun out and get paid for it. <a href="https://islamabad-escorts69.tumblr.com/">islamabad-escorts69.tumblr.com</a> is simply excellent and plans to have your services again.
2019年5月02日 18:41
This is a very helpful share from users can get better help in learning of right way of proper coding in effective way. People like to read latest zipjob resume review for learning of professional CV writing works.
2019年9月17日 21:54
Well before jumping with the house maintaining services company’s tip, let all of us suggest you a fun way for you to exercise and lay aside some money in addition! A go through indicated that your chosen regular man or woman could use up 200 to help you 260 calories at least an hour doing home cleaning! So, let’s start the best tip designed for saving as a result of doing the various houses maintaining alone, and use up some calories to provide a reward!
2019年10月07日 10:50
After study a few of the blog posts on your website now, and I truly like your way of blogging. I bookmarked it to my bookmark website list and will be checking back soon. Pls check out my web site as well and let me know what you think. Thanks for your words and allowing me to commenting!
2019年11月15日 00:47
If you are searching for a inkjet printer to printing labels, then you're bound to obtain confused effortlessly due to the choices which are available for sale. There really are a different number of printers which are used in order to print labeling, you require some tips to obtain the best Content label printer based on your necessity.
2020年3月21日 22:05
Start with thinking about your situation. Are you prepared buy home? How much how can you afford in any monthly home owner loan payment? How a lot of space do you really require? What sections of town do you really like? As you answer such questions, develop a "To Do" list it's essential to doing laid back research on the subject of property. Talk to loved ones, drive throughout neighborhoods, and peruse in typically the "Homes" a natural part of the rag, Foreclosure Prices, and internet search.
2020年3月21日 22:06
Home inspection, for the reason that defined, happens to be an examination of this physical arrangement and systems from a home, which supplies a detailed 'snapshot' of the condition of the home for the duration of the examination. The reason for a residential inspection is to help reduce some of this risk in the middle of purchasing home; however, it again cannot take away those negative aspects, nor are able to the inspector expect future happenings or alters in performance owing to changes drank or occupancy.
2020年3月21日 22:06
Anybody can see the comfort from a clean not to mention well held on to home. Home cleaning can be described as necessity a lot of people are unable to keep their residence cleans due to their fast paced schedules. Homes could be cleaned regularly as a way for unpleasant odors and vermin infestations to always be prevented.
2020年4月29日 17:58
Whenever you hire the servant maid to wash you house or office, you tend to be permitting her to get into to your individual belongings. Therefore before signing up a cleaning service, you ought to ask particular questions to discover more about her history information as well as personal testimonials. First point is which, you ought to inquire your pals, relatives or even acquaintances for his or her personal experience using the servant service personnel.
2020年4月29日 17:58
If you wish to give your house a certain kind of atmosphere, then inside paints are extremely important. The paints that you simply choose will offer you either warmness or coolness towards the rooms of your house and if you want to paint your self or employ house artists; keep in your mind that we now have many ideas that you should consider. These suggestions include selecting things like the right fresh paint, colors, tones, schemes, colour methods, along with related elements.
2021年1月26日 15:24 Thanks for writing such a good article, I stumbled onto your blog and read a few post. I like your style of writing... บุหรี่ไฟฟ้า
2021年2月08日 21:37
It is very good, but look at the information at this address. 그래프사이트
2021年3月26日 00:25
You will find on these online casinos a wide range of games of all kinds, provided you choose a reliable casino that allows you to have opportunities to collect winnings, what to combine the useful with the pleasant.
2021年5月10日 23:03
Thanks for sharing this
2021年5月11日 13:17
Hello, I have browsed most of your posts. This post is probably where I got the most useful information for my research. Thanks for posting, maybe we can see more on this. Are you aware of any other websites on this subject.
2021年5月11日 18:37
Thanks for writing such a good article, I stumbled onto your blog and read a few post. I like your style of writing...
2021年5月13日 02:50
The writer has outdone himself this time. It is not at all enough; the website is also utmost perfect. I will never forget to visit your site again and again.
2021年5月14日 13:52
I have bookmarked your site since this site contains essential information in it. I am amazingly content with articles quality and presentation. You're really great to keep staggering stuff. I am particularly thankful for this site.
2021年5月15日 04:16
I was surfing the Internet for information and came across your blog. I am impressed by the information you have on this blog. It shows how well you understand this subject.
2021年5月15日 15:08
A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post
2021年5月15日 18:21
The writer has outdone himself this time. It is not at all enough; the website is also utmost perfect. I will never forget to visit your site again and again.
2021年5月18日 03:57
I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things, The web site style is perfect, the articles is really great : D. Good job, cheers
2021年5月19日 02:49
I’ve read some good stuff here. Definitely worth bookmarking for revisiting. I surprise how much effort you put to create such a great informative website.
2021年5月20日 22:38
Very useful post. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. Really its great article. Keep it up. <a href="https://naturewelljuice.com/">vegan downtown</a>
2021年5月21日 20:08
Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specially the last part I care for such information a lot. I was seeking this certain info for a long time. Thank you and good luck.
2021年5月23日 05:01
Outstanding message. Thanks to this blog site my expedition has ended.
2021年5月23日 07:29
This particular papers fabulous, and My spouse and i enjoy each of the perform that you have placed into this. I’m sure that you will be making a really useful place. I has been additionally pleased. Good perform!
2021年5月24日 18:31
Great articles and great layout. Your blog post deserves all of the positive feedback it’s been getting.
2021年5月25日 01:26
I really appreciate this post. I’ve been looking everywhere for this! Thank goodness I found it on Bing. You’ve made my day! Thank you again!
2021年5月25日 22:57
Thank you for taking the time to publish this information very useful!
2021年5月26日 13:02
Keep up the good work , I read few posts on this web site and I conceive that your blog is very interesting and has sets of fantastic information.
2021年5月27日 01:14
Thanks for the post and great tips..even I also think that hard work is the most important aspect of getting success.
2021年5月27日 23:01
I have read all the comments and suggestions posted by the visitors for this article are very fine,We will wait for your next article so only.Thanks!
2021年5月30日 08:12
Thankyou for this wondrous post, I am glad I observed this website on yahoo.
2021年5月30日 13:05
Very informative article post.Really looking forward to read more. Keep writing.
2021年6月02日 12:29
That is really nice to hear. thank you for the update and good luck.
2021年6月03日 23:28
Nice to be visiting your blog once more, it has been months for me. Well this article that ive been waited for therefore long. i want this article to finish my assignment within the faculty, and it has same topic together with your article. Thanks, nice share
2021年6月04日 21:47
I have a hard time describing my thoughts on content, but I really felt I should here. Your article is really great. I like the way you wrote this information.
2021年6月07日 14:27
Without getting a proper home cleaning plan, it can take too much effort to cover your complete house. And even, the maintaining experts in any home cleaning service providers always select strategic cleaning propose to accomplish your complete procedure whatsoever time conceivable. So, make an inventory and sort out the necessary problems that are must be done.
2021年6月08日 08:55
Nice post mate, keep up the great work, just shared this with my friendz
2021年6月11日 08:07
Great articles and great layout. Your blog post deserves all of the positive feedback it’s been getting.
2021年6月12日 06:16
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post.
2021年6月14日 13:51
Thank you for this fascinating post, I am happy I observed this website on Google. Not just content, in fact, the whole site is fantastic.
2021年6月16日 13:05
I like your post. It is good to see you verbalize from the heart and clarity on this important subject can be easily observed...
2021年6月19日 13:17
It will be preferably productive, even while consider the facts whenever the house reaches which will deal with.
2021年6月22日 16:07
I high appreciate this post. It’s hard to find the good from the bad sometimes, but I think you’ve nailed it! would you mind updating your blog with more information
2021年6月28日 00:26
I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article.
2021年7月02日 07:37
Thanks for picking out the time to discuss this, I feel great about it and love studying more on this topic. It is extremely helpful for me. Thanks for such a valuable help again
2021年7月05日 23:59
Best work you have done, this online website is cool with great facts and looks. I have stopped at this blog after viewing the excellent content. I will be back for more qualitative work.
2021年7月11日 01:38
Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info.
2021年7月13日 01:53
Merely a smiling visitant here to share the love (:, btw outstanding style.
2021年10月27日 16:04
Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place. matka result
2022年1月22日 20:58
Thanks for writing such a good article, I stumbled onto your blog and read a few post. I like your style of writing...
2022年5月22日 19:07
Great research and very well written. if you are looking for lyca beltegoed, lebara beltegoed, lyca bundel xs, samsung a52, samsung a51, samsung a72, iphone 13 pro max in Netherlands, get in touch with us.