Giter Club home page Giter Club logo

builder's Introduction

builder

An attempt to centralize the configuration and building of application environments at eLife, locally (Vagrant) and remotely (AWS).

first

Download:

git clone ssh://[email protected]/elifesciences/builder

Install:

./update.sh

Fix any missing pre-requisites and call ./update.sh again until you see the happy

all done

message. Updating in the future is as simple as:

git pull
./update.sh

If you are outside of the eLife organization, make sure to set the write-context-to-s3 and write-keypairs-to-s3 keys in settings.yml keys are False. Their use is related to backing up information about the generated resources on an S3 bucket, but the customization of this bucket is not supported yet.

Next

Your settings.yaml file was created automatically and contains options for tweaking the behaviour of builder, like the project file it should be using.

By default it points to the ./projects/elife.yaml project file. This file describes all eLife projects that can be built and their environments. See here for more project file documentation.

Project files and the settings.yml file are the only two places where configuration is supported.

'configuration' also exists in ./src/buildercore/config.py if you're a builder dev.

After successfully installing and configuring builder, launching a Vagrant instance is a good test that all is working correctly.

Vagrant

The Vagrantfile can build any project, you just need to tell it which one:

$ vagrant up
You must select a project:

1 - journal--vagrant
2 - api-gateway--vagrant
3 - ...
>

... or it can be done with environment variables:

$ PROJECT=journal vagrant up

AWS (Amazon Web Services)

The other half of the builder project is the ability to create and manage AWS resources. This is controlled with the "bldr" script:

$ ./bldr -l

Will list all builder tasks found in src/. These tasks are just Python functions.

A master-server instance must exist before project instances can be brought up. See here for a walkthrough.

To launch a project backed by a code repository to AWS:

$ ./bldr deploy
// or specify project and environment
$ ./bldr deploy:journal,prod

To launch a instance of any project to AWS, use:

// or specify project and environment
$ ./bldr launch:api-gateway,prod

To ssh into one of these machines:

$ ./bldr ssh:journal--prod

More!

General:

AWS:

Troubleshooting:

Development

Copyright & Licence

The builder project is MIT licenced.

The builder project was GPL3 licensed until this commit on 2016-07-13.

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.