Giter Site home page Giter Site logo

dawn's Introduction

Dawn

Hello, welcome to Dawn, a PaaS that leverages Ruby on Rails and Docker. It implements a Heroku-like interface, with an API-first approach. Initial development started in October 2013 intending to be launched as a commercial service eventually, however due to the increasing competition in the PaaS market, and the lack of time, we've released it as open-source. Enjoy!

Our current development stack is ubuntu 14.04, running docker, ruby 2.1.2 (rails 4.1.1), postgresql, redis, logplex and hipache.

Future goal is to port the platform onto coreOS, and split the app into several containers (using a similar setup to what userspace apps will use -- dogfeeding us our own stack). Doing so will make the platform more modular, easier to deploy and scale, and faster to provision.

Features

  • Releasing apps onto the platform via git
  • Building app containers via Buildstep
  • Importing ENV variables into the app space
  • Retrieving app logs, and setting up drain urls, to which logs can be submitted via HTTP POST
  • Scaling per-proctype

Prerequisites

  • A system capable of running amd64 VMs (for our development box)
  • Vagrant >= 1.6.2
  • Ansible >= 1.6.2
  • Patience (if you have a bad network connection and/or not so fancy computer)

Installation (Development)

Setting up a development environment is pretty easy, as Vagrant automatically runs the Ansible playbooks provided. All it takes to get the box up and running is:

vagrant up

The initial provisioning run might take a while, because we pull and compile several dependencies.

In case you need to run the provisioning again in the future:

vagrant provision

dnsmasq

The box IP needs to resolve to dawn.dev and dawnapp.dev (configurable in config/application.yml). You can add an alias to /etc/resolv.conf, or use your own method of doing so. We suggest using dnsmasq, with the following line in it's configuration:

# /etc/dnsmasq.conf
...
address=/dev/192.168.33.10

All set! Your box is now ready to use. Point your browser to http://dawn.dev, and it should show a landing page.

Our client is recommended currently, as it's the most feature complete, however, a web interface is also in the works, available under dashboard.dawn.dev.

Proposed features

  • dawn run: one-off containers running a single command then getting destroyed

  • Adding custom domains

  • Services: db, queues, caches, mail servers, file storage

  • Rollback to a specific release

  • Inject the ENV config into the releases

  • Resource limiting: constraints on CPU, memory, bandwidth, disk space...

  • Per app metrics

  • Global server metrics, so we can monitor the entire server

  • Monitoring: restart any crashed gear

  • Manage different release environments

  • Use a grsecurity patched kernel (or coreOS)

  • Use OAuth2 to make a provider for token generation, authentication and authorization

  • Logging: allow us to specify drains (uses logplex drains to post logs to a drain)

FAQ

vagrant provision stalls at dawn/buildstep

Buildstep takes quite a bit to build, in the case that it shows no sign of movement, you can also try to build it manually:

dawn$ vagrant ssh
vagrant@ubuntu-14:~$ cd /app
vagrant@ubuntu-14:/app$ docker build -t dawn/buildstep .

bundle install fails in a SSL error

Try running the provisioning again, it's probably a network error.

API Documentation

Docs

Have Questions?

Hit us up on the irc on freenode #dawn

But please, don't really hit us

dawn's People

Contributors

icedragon200 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.