TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

84 pointsby dscapealmost 12 years ago

6 comments

e12ealmost 12 years ago
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.
sergiotapiaalmost 12 years ago
&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 未加载
pbreitalmost 12 years ago
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 未加载
mattezellalmost 12 years ago
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!
cpursleyalmost 12 years ago
This is awesome. These are four technologies that I&#x27;m currently learning - good timing.
andreypoppalmost 12 years ago
Does that mean Ubuntu on DigitalOcean has Docker support out of the box?