News for hackers. Stuff that matters.
Re:Show HN: “Install on DigitalOcean” button for open source... by timmorgan on Friday October 31, 2014 @10:15AM (#8538815)
Hey everybody. I built this small Sinatra app because I wanted a simpler way for people to install my software OneBody[1] on DigitalOcean.

I'm not sure my little VPS will hold up under the strain of HN, but you can see the app in action at http://installer.71m.us and even use it to install itself (how meta!) on DigitalOcean.

This uses the new MetaData[2] feature of the DO API to pass a config string to be processed by CloudConfig[3].

Once that is done, there is a small bit of code running on the VM to tell this app when the install is finished so you get a progress bar while you're waiting.

To be clear, DigitalOcean is doing all the real work -- this app simply acts as a hand-off between your app.yml config file on GitHub and the DigitalOcean API.

[1] https://github.com/churchio/onebody

[2] https://www.digitalocean.com/community/tutorials/an-introduc...

[3] https://www.digitalocean.com/community/tutorials/an-introduc...

Re:Show HN: “Install on DigitalOcean” button for open source... by jaequery on Saturday November 01, 2014 @12:36PM (#8543635)
Hi! So I clicked on Deploy to DO button, I now have a VM up and running.

But now what? I can't even SSH into it as I don't have the pw. I hit port 80 and all I get is the same "install it on DO page".

I thought it'd do a 1 click deployment, I'm stumped :(

Re:Show HN: “Install on DigitalOcean” button for open source... by timmorgan on Saturday November 01, 2014 @12:44PM (#8543677)
If you have an ssh key set up in your DigitalOcean account, then that is the key set up on the root account. If not, you should have received a password email from DigitalOcean -- use that.

    ssh root@the-ip
Re:Show HN: “Install on DigitalOcean” button for open source... by jaequery on Saturday November 01, 2014 @12:50PM (#8543700)
thanks i got in ssh.

but as for the app, I hit the IP and i just see the "DO Install Button" page. http://cl.ly/image/032E0s0S122I

is this expected?

thx for the awesome work btw, i am just so anxious to try it out, atleast for one of the church i know who could def use something like this.

Re:Show HN: “Install on DigitalOcean” button for open source... by timmorgan on Saturday November 01, 2014 @01:25PM (#8543823)
You might be more interested in installing our church app OneBody. You can do that by clicking the "Install on DigitalOcean" button in the readme here: https://github.com/churchio/onebody
Re:Show HN: “Install on DigitalOcean” button for open source... by adsche on Saturday November 01, 2014 @01:15PM (#8543781)
I think it is expected, the app you just installed is the 'Install Button'-App.
Re:Show HN: “Install on DigitalOcean” button for open source... by andrewsomething on Friday October 31, 2014 @10:36AM (#8538946)
Love it! This is the exact type of thing that we hoped would come from providing the MetaData service.

Please submit it to our projects page so we can highlight it:

https://www.digitalocean.com/community/projects

Re:Show HN: “Install on DigitalOcean” button for open source... by swanson on Friday October 31, 2014 @10:40AM (#8538967)
I'd be interested in adding this button once it gets offical support from DigitalOcean.

I added the Heroku Button[1] to a self-hosted OS app I wrote[2] and it seems to be useful (over 100 "recent deploys" per Heroku). It would be great if there was some affiliate commission as well - if someone signs up for a VPS to run an app, would be awesome to get a small kickback from DigitalOcean.

[1]: https://buttons.heroku.com/

[2]: https://github.com/swanson/stringer

Re:Show HN: “Install on DigitalOcean” button for open source... by timmorgan on Friday October 31, 2014 @10:43AM (#8538988)
Matt, thanks for the feedback!

I'm not sure this app would get official support from DO, since it's a bit hacky. I imagine DO would add their own install-button support at some point in the future (at least I hope so).

This app does set a referral cookie whenever someone chooses to install an app using it.

Re:Show HN: “Install on DigitalOcean” button for open source... by RubyPinch on Saturday November 01, 2014 @04:55AM (#8542527)
that is referral for the hoster of the button, not the project installed via the button, correct?
Re:Show HN: “Install on DigitalOcean” button for open source... by timmorgan on Saturday November 01, 2014 @10:38AM (#8543172)
Yes.
Re:Show HN: “Install on DigitalOcean” button for open source... by privong on Friday October 31, 2014 @10:45AM (#8539003)
DigitalOcean does have an affiliate program[0] – is there a way to include that with the button?

[0] https://www.digitalocean.com/referral-program/

Re:Show HN: “Install on DigitalOcean” button for open source... by timmorgan on Friday October 31, 2014 @10:47AM (#8539011)
Yep, it already does! Whenever someone clicks to install, a referral cookie is set on DO.
Re:Show HN: “Install on DigitalOcean” button for open source... by gohrt on Friday October 31, 2014 @01:41PM (#8540024)
Something Something WebIntents.

Why is "DigitalOcean" a choice made by the app, instead of by the user? Can there be a standard for this sort of installation metadata?

Re:Show HN: “Install on DigitalOcean” button for open source... by timmorgan on Friday October 31, 2014 @01:54PM (#8540109)
There could be a standard, but I don't think it exists today (at least not one that is supported by the services I hope to use, e.g. DigitalOcean, Amazon, Google).

This is a tool that scratches my own itch -- certainly not something I care to be the end-all of service-agnostic app installer.

Re:Show HN: “Install on DigitalOcean” button for open source... by jfroma on Friday October 31, 2014 @09:15PM (#8541878)
I think you are looking for Topology and Orchestration Specification for Cloud Applications (TOSCA) [1] which allows you not only to create one node but a cluster, their drives, network rules, autoscalling etc.

There is also another project which is cloud-init [2] that defines an standard way of mounting the initial data, and provision the shh keys.

Cloud Formation is aws implementation of this and is quite good. You can create define a template of how your application should be deployed and parameters for the end user like Heroku button.

You can check a good example of these technologies on the coreos landing page [4].

[1]: http://en.m.wikipedia.org/wiki/OASIS_TOSCA https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=...

[2]: http://cloudinit.readthedocs.org/en/latest/

[3]: http://aws.amazon.com/cloudformation/

[4]: https://coreos.com

Re:Show HN: “Install on DigitalOcean” button for open source... by billions on Friday October 31, 2014 @04:53PM (#8541080)
Soon each person will have a computer in the cloud. There is no reason why apps shouldn't be as easy to install on any user-provided server as on desktops. I am very excited about this and would be interested helping code it.
Re:Show HN: “Install on DigitalOcean” button for open source... by wmf on Friday October 31, 2014 @09:54PM (#8541946)
I think https://sandstorm.io/ is the leading project in this area.
Re:Show HN: “Install on DigitalOcean” button for open source... by kordless on Saturday November 01, 2014 @11:12AM (#8543304)
I have a very simple demo of this running for StackMonkey and should have a live demo on the site by Tuesday or Wednesday of the OpenStack Summit. It uses the Launcher APIs (which are still in progress and currently undocumented) which runs this page: https://www.stackmonkey.com/launcher/. Obviously you need Bitcoin to start the instances on the various providers.
Re:Show HN: “Install on DigitalOcean” button for open source... by diminoten on Friday October 31, 2014 @05:01PM (#8541114)
How are you planning on handling support for this going forward?

I have no specific need, I'm just always curious about how folks transition from, "I have a neat idea" to "I want my neat idea to work for most people".

Re:Show HN: “Install on DigitalOcean” button for open source... by doczoidberg on Friday October 31, 2014 @12:30PM (#8539637)
Re:Show HN: “Install on DigitalOcean” button for open source... by akavel on Friday October 31, 2014 @02:02PM (#8540149)
Upvoting, in part because as much as I don't understand why an open-source project would want to advertise a particular vendor, if one insists on Facilitating Deployment (while doing unpaid advertising), one should probably take effort to facilitate this deployment to as many vendors as possible. Thus Azure and Heroku too (linked in your comment to comment) if it's possible in similar way, and maybe there are more too.

edit: ah, I see from other comment that there's apparently possibility of gaining some "cash" from DO for the ads: https://www.digitalocean.com/referral-program/ although seems only useful if one's using the DO platform himself (works as a discount).

Re:Show HN: “Install on DigitalOcean” button for open source... by mietek on Saturday November 01, 2014 @09:32AM (#8542961)
So, I wanted to give Azure a try. I created a new Microsoft account, and signed up for an Azure free trial. Unfortunately, I cannot even load http://deployto.azurewebsites.net, as there appears to be an OAuth failure:

Sorry, but we’re having trouble signing you in. We received a bad request.

Re:Show HN: “Install on DigitalOcean” button for open source... by doczoidberg on Friday October 31, 2014 @12:32PM (#8539648)
Re:Show HN: “Install on DigitalOcean” button for open source... by level09 on Friday October 31, 2014 @11:40AM (#8539329)
I have written something similar, it deploys Enferno (enferno.io) a flask based app on ubuntu (not necessarily digital ocean)

it's an ansible playbook that configures the server and installs all requirements, and sets up nginx, python for you.

whoever is interested, here is the source code:

https://github.com/level09/enferno-ansible

Re:Show HN: “Install on DigitalOcean” button for open source... by hunvreus on Friday October 31, 2014 @11:33AM (#8539271)
Very neat. We did something very similar with the devo.ps button, allowing you to define configurable settings: http://devo.ps/blog/deploy-your-meteor-apps-on-digital-ocean...

We have yet to properly document the feature, but we've used it in a few places already.

Re:Show HN: “Install on DigitalOcean” button for open source... by thisismitch on Friday October 31, 2014 @10:38AM (#8538957)
Great use of OAuth, API, and user data!
Re:Show HN: “Install on DigitalOcean” button for open source... by bhhaskin on Friday October 31, 2014 @10:30AM (#8538916)
I like the idea, but runcmd could be dangerous as well as setting sudo permissions.
Re:Show HN: “Install on DigitalOcean” button for open source... by jerf on Friday October 31, 2014 @12:03PM (#8539488)
It's installing a brand new VM. By definition, it's got more than just root, it's got enough permissions to bring up new VMs entirely. Being worried about whether it has sudo permissions or something inside the VM is beside the point once you've stipulated that.
Re:Show HN: “Install on DigitalOcean” button for open source... by timmorgan on Friday October 31, 2014 @10:34AM (#8538935)
Certainly, for anyone who wants to hand-type the commands on their own machine, we have manual install instructions for OneBody[1].

But for a whole host of people, getting the app running quickly on a host they control is like magic.

[1] https://github.com/churchio/onebody/wiki/Manual-Installation

Re:Show HN: “Install on DigitalOcean” button for open source... by mbertrand on Friday October 31, 2014 @11:53AM (#8539421)
This is very cool, nice work!
Re:Show HN: “Install on DigitalOcean” button for open source... by acron0 on Friday October 31, 2014 @11:40AM (#8539321)
Will definitely use :)
Re:Show HN: “Install on DigitalOcean” button for open source... by phalgun_g on Friday October 31, 2014 @10:31AM (#8538924)
This is quite cool.
Re:Show HN: “Install on DigitalOcean” button for open source... by Blaine0002 on Sunday November 02, 2014 @03:12PM (#8547917)
This is pretty exactly what I use fabfiles for.
Re:Show HN: “Install on DigitalOcean” button for open source... by zwischenzug on Friday October 31, 2014 @11:58AM (#8539455)
Why not just use docker for this? Then you can install anywhere that has docker.
Re:Show HN: “Install on DigitalOcean” button for open source... by timmorgan on Friday October 31, 2014 @12:01PM (#8539474)
This tool is built to interface with DigitalOcean's API so it can spin up the VM.

There is no universal API for Docker that would allow one to install "anywhere that has docker", at least as far as I know.

Re:Show HN: “Install on DigitalOcean” button for open source... by Gigablah on Friday October 31, 2014 @12:17PM (#8539558)
Maybe not Docker itself, but this looks like a use case for CoreOS. In this case the "install button" would simply submit fleet unit file(s).
Re:Show HN: “Install on DigitalOcean” button for open source... by timmorgan on Friday October 31, 2014 @12:20PM (#8539576)
Thanks for this comment -- reminds me I need to look into CoreOS some more.
Re:Show HN: “Install on DigitalOcean” button for open source... by acron0 on Friday October 31, 2014 @12:18PM (#8539568)
This response annoys me a little bit. "Why not just use docker?" gets thrown around so much at the moment, as if Docker is the alpha and omega of app deployment. Is it just me? Docker's awesome. I love Docker. But it's not the Messiah of app deployment. Not that DO is, but that's not the point.
Re:Show HN: “Install on DigitalOcean” button for open source... by Gigablah on Friday October 31, 2014 @12:21PM (#8539580)
You could treat a $5 DO instance as a big "container" in itself :)
Re:Show HN: “Install on DigitalOcean” button for open source... by zwischenzug on Friday October 31, 2014 @01:13PM (#8539860)
That _is_ the point. Why tie yourself to one VPS provider?
Re:Show HN: “Install on DigitalOcean” button for open source... by alex_chang on Friday October 31, 2014 @12:42PM (#8539695)
I'd definitely fund a company based around this.
Re:Show HN: “Install on DigitalOcean” button for open source... by driverdan on Friday October 31, 2014 @02:23PM (#8540270)
Based around what, one click VPS/PAAS deploys? There are a lot of tools out there that can do this. Vagrant with a bash script is the simplest that comes to mind.
Re:Show HN: “Install on DigitalOcean” button for open source... by alex_chang on Friday October 31, 2014 @02:32PM (#8540301)
You'd probably be able to create a marketplace around these types of services which wraps monitoring/uptime/alerting/management/autoscaling/software updates etc into one interface.
Re:Show HN: “Install on DigitalOcean” button for open source... by manacit on Friday October 31, 2014 @04:03PM (#8540824)
You're looking for Bitnami: https://bitnami.com
Re:Show HN: “Install on DigitalOcean” button for open source... by ridruejo on Friday October 31, 2014 @08:14PM (#8541743)
Yes :) We support AWS, Google, Amazon as well as local development. A bunch more coming soon
Re:Show HN: “Install on DigitalOcean” button for open source... by icelancer on Friday October 31, 2014 @04:05PM (#8540832)
Dropbox is nothing more than rsync, right?
Re:Show HN: “Install on DigitalOcean” button for open source... by JetSpiegel on Friday October 31, 2014 @05:05PM (#8541129)
Indeed, but they also provide a reliable server in the web. That's their value, not the reimplementation of rsync.
Re:Show HN: “Install on DigitalOcean” button for open source... by nodata on Friday October 31, 2014 @11:56AM (#8539438)
Does this kind of go against the spirit of open source?
Re:Show HN: “Install on DigitalOcean” button for open source... by timmorgan on Friday October 31, 2014 @12:03PM (#8539486)
For OneBody, we have 6 different ways to install the software.[1] We're definitely not forcing anyone to pay DigitalOcean to host our open source app, but it sure is nice to give people that option when they don't want to mess with running their own host.

[1] https://github.com/churchio/onebody/wiki/Installation

Re:Show HN: “Install on DigitalOcean” button for open source... by gohrt on Friday October 31, 2014 @01:47PM (#8540066)
Why is "church" (specifically) built into the onebody product? The software would seem to be organization-agnostic, suitable for any community group. "Church" is certainly a reasonable target/majority use case for marketing, but it seems strange to exclude other cases where a group of people come together in a buildng, take classes, plan events, etc, where the software could work fine.
Re:Show HN: “Install on DigitalOcean” button for open source... by timmorgan on Friday October 31, 2014 @01:51PM (#8540098)
I agree somewhat, though OneBody does have church-specific features built-in, such as favorite bible verses and prayer requests etc. It is specialized for church communities, though you can turn that stuff off and use the software as a general community social network if you want.
Re:Show HN: “Install on DigitalOcean” button for open source... by jerf on Friday October 31, 2014 @11:58AM (#8539453)
How? (Tone: neutral question. I honestly don't know what you mean.)
Re:Show HN: “Install on DigitalOcean” button for open source... by ceejayoz on Friday October 31, 2014 @12:43PM (#8539702)
Does firing up a Linux box on an AWS instance?