Coder Social home page Coder Social logo

emerleite / basebuilder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tsuru/basebuilder

0.0 2.0 0.0 3.38 MB

Official Docker images of tsuru PaaS platforms.

License: BSD 3-Clause "New" or "Revised" License

Shell 57.47% Nginx 1.96% Python 35.67% Ruby 4.89%

basebuilder's Introduction

This repository has the scripts used to build tsuru's docker images.

Installing platforms

Each directory describes a tsuru platform. To add one of these platforms to your tsuru installation you simply call:

$ tsuru-admin platform-add <name> -d https://raw.github.com/tsuru/basebuilder/master/<name>/Dockerfile

Creating new platforms

The only mandatory file if you're creating a new platform is the Dockerfile.

tsuru will look for two scripts to be available inside the platform image:

  • /var/lib/tsuru/start
  • /var/lib/tsuru/deploy

You should make sure these scripts are added by your Dockerfile, in a similar fashion to how it's done in the example platforms.

The deploy script is called by tsuru when creating an image for your application. It's responsible for downloading the source code and installing possible dependencies.

It's highly recommended for your platform's deploy script to source the contents of the /base/deploy script. This script already handles downloading the source code and installing OS dependencies described by the requirements.apt file.

The start script is called by tsuru to start your application on an image previously built with the deploy script.

Currently all of our platforms rely on circus to run the application based on a the contents of a Procfile present in the application. It's recommended that a new platform use circus in the same way, therefore avoiding the need to change the start script from the one already available at /base/start.

Using circus is useful since it already handles parsing the Procfile, log forwarding to tsuru and restarting the process if it dies for some reason. You can customize your platform's circus.ini from the one available in /utils/circus.ini by making sure your Dockerfile writes your file to /etc/circus/circus.ini.

basebuilder's People

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.