News for hackers. Stuff that matters.
Re:A Container Is a Function Call by jackweirdy on Monday August 15, 2016 @03:05AM (#12289113)
The format the author proposes for a new Dockerfile is semantically similar to how Juju charms describe services.

    name: vanilla
    summary: Vanilla is an open-source, pluggable, themeable, multi-lingual forum.
    maintainer: Your Name <[email protected]>
    description: |
      Vanilla is designed to deploy and grow small communities to scale.
      This charm deploys Vanilla Forums as outlined by the Vanilla Forums installation guide.
    tags:
      - social
    provides:
      website:
        interface: http
    requires:
      database:
        interface: mysql
https://jujucharms.com
Re:A Container Is a Function Call by mintplant on Monday August 15, 2016 @06:14AM (#12289516)
> $ juju deploy haproxy

> $ juju deploy mediawiki

> $ juju add-relation haproxy mediawiki

> $ juju deploy mariadb

> $ juju add-relation mediawiki mariadb

> $ juju deploy memcached

> $ juju add-relation mediawiki memcached

> $ juju expose haproxy

That's really cool! Why isn't this talked about more? Bias against Canonical?

Re:A Container Is a Function Call by jackweirdy on Monday August 15, 2016 @06:22AM (#12289530)
From having tried a few times on a mac, it's really hard to get started. The local provider is LXC-based so can only run on linux. I'd love it if it ran on docker or virtualbox.
Re:A Container Is a Function Call by SmurfJuggler on Monday August 15, 2016 @07:20AM (#12289686)
I didn't know juju existed until now, but I've been working on something kind of similar which is a lot less hassle to get up and running (vagrant up, done) although I'm just one guy who doesn't have a hell of a lot of free time so it will be intended purely for creating local dev environments at least initially (and will come with a "do not run production services on this or you will die" style warning)

It takes some steps towards resolving some of the issues in the article as well as a number of other headaches I've encountered when trying to bend docker to my will and build a development environment I can use every day for everything without having to mess around with basic plumbing.

I can post a show HN about it in the days ahead if there's any interest - it's not anywhere near where I want it to be (least of all in terms of code quality) but the amount of time I can devote to coding is about to drop from "near zero" to "really REALLY near zero" for a while, and it's very usable and handy so it might be worth just tossing it out there as-is and coming back to it at a later date.