TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Node.js Deployments with Docker, Dokku, and Digital Ocean

84 点作者 dscape将近 12 年前

6 条评论

e12e将近 12 年前
Great article, a couple of comments:<p><pre><code> root@dinospace: wget -qO- \ https:&#x2F;&#x2F;raw.github.com&#x2F;progrium&#x2F;dokku&#x2F;master&#x2F;bootstrap.sh \ | sudo bash </code></pre> First, if you&#x27;re already logged in as root, there is no[1] need for sudo. Secondly, I know this is how dokku recommends installing, but a) running wget as root probably isn&#x27;t the best idea, and b) pulling down a shell script and running it as root is a <i>really</i> bad idea. At least download the script and check that you&#x27;re running what you think you&#x27;re doing (in fact, you&#x27;ll see that the script is just a short list of things, few of which needs to be run as root).<p><pre><code> ana@local: cat ~&#x2F;.ssh&#x2F;id_rsa.pub | \ ssh root@dinosaurspaceships.org \ “sudo gitreceive upload-key username” </code></pre> Same thing - either give your regular user sudo privileges (and prepare to have to enter your password, unless you specify to not need one -- in which case that should be limited to eg the gitrecieve command) -- or just drop the sudo.<p>I think docker is a great project, but I would like to see more support for running it under different user(s) than root. Looks like I&#x27;m not the only one:<p><pre><code> https:&#x2F;&#x2F;github.com&#x2F;dotcloud&#x2F;docker&#x2F;issues&#x2F;1121 </code></pre> [1] sudo does some logging, but that is mainly helpful when it can log a &quot;useful&quot; user name, not &quot;root&quot; -- ie: you can see who broke the server, if more than one person has sudo access.
sergiotapia将近 12 年前
&gt;Docker powered mini-Heroku in less than 100 lines of Bash<p>Can I use this to deploy Rails application like I do on Heroku, or is it Nodejs only at the moment?<p>I&#x27;m currently in a limbo between WebFaction (VPS with some configuration hand holding) and DigitalOcean (you&#x27;re on your own).
评论 #6152731 未加载
评论 #6152790 未加载
pbreit将近 12 年前
Does it feel like Docker is picking up some steam right now? I like the concept but am still wondering if Docker is a better approach than going straight to the machine. How necessary is the 1GB droplet (vs 512mb)?
评论 #6153033 未加载
mattezell将近 12 年前
Great read. I could see incorporating this into my stack... In any case, I was happy to learn about each of the tools&#x2F;projects mentioned within - especially stoked about Docker!
cpursley将近 12 年前
This is awesome. These are four technologies that I&#x27;m currently learning - good timing.
andreypopp将近 12 年前
Does that mean Ubuntu on DigitalOcean has Docker support out of the box?