Giter VIP home page Giter VIP logo

ci-platform's Introduction

This repository contains the code required to bootstrap a local Jenkins instance using either AWS. It is a subset of the existing Ansible code from ansible-jenkins-showcase

To use it:

  1. Install vagrant, rake, mkmf

  2. clone this repostory

     git clone http://github.com/clusterhq/ci-platform.git
     cd ci-platform
    
  3. clone the secrets repository:

     git clone http://github.com/clusterhq/segredos.git
    
  4. Symlink the secrets to group_vars

     ln -s segredos/ci-platform group_vars
    
  5. install ansible:

     pip2 install ansible==1.9.2
    

Note: the ansible 'vault' file is not currently used, as soon it is required, it should be moved to the secrets-repo and symlinked.

The secrets-repo above contains the YAML dictionary (group_vars/all.yaml) used by Ansible to configure the instance.

  1. for aws, you need to export your aws environment variables (the same ones used by the CI-slave-images project):

    • AWS_KEY_PAIR (the KEY_PAIR to use)
    • AWS_KEY_FILENAME (the full path to your .pem file)
    • AWS_SECRET_ACCESS_KEY
    • AWS_ACCESS_KEY_ID

Note that your ssh key referred to by AWS_KEY_FILENAME can't have a passphrase set.

  1. Then simply run:

     rake default
    

    The first run, takes around 40 minutes, following runs around 9 minutes

and connect to http://jenkins:8080

you should see a fully deployed, configured jenkins ready to bootstrap EC2 slaves.

ci-platform's People

Contributors

azulinho avatar james-w avatar mdevilliers avatar sarum90 avatar zubron avatar

Watchers

 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.