Coder Social home page Coder Social logo

cyrille-leclerc / jenkins-boshrelease Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudfoundry-community-attic/jenkins-boshrelease

0.0 0.0 0.0 467 KB

One of the fastest ways to get Jenkins running on any infrastructure is too deploy this bosh release

Ruby 21.04% Shell 78.96%

jenkins-boshrelease's Introduction

Bosh release for Jenkins

One of the fastest ways to get Jenkins running on any infrastructure is to deploy this bosh release.

Usage

To use this bosh release, first upload it to your bosh:

bosh target BOSH_URL
bosh login
git clone https://github.com/cloudfoundry-community/jenkins-boshrelease.git
cd jenkins-boshrelease
bosh upload release releases/jenkins-3.yml

You now need a deployment file. This is different for each use case.

bosh-lite/warden deployments

Copy the examples/try_me.yml to say ~/deployments/bosh-lite-jenkins.yml.

Then target it, update it with the bosh-lite/warden template, and deploy it:

bosh deployment ~/deployments/bosh-lite-jenkins.yml
bosh -n diff templates/v1/warden_deployment_file.yml.erb
bosh -n deploy

You can now view Jenkins in your browser at http://10.244.1.2/

AWS or OpenStack deployments

There are three additional manual steps than above:

  • acquire a public IP address, say 1.2.3.4
  • create a security group with ports 22 & 80 open, say jenkins

Create a simple initial deployment file, say ~/deployments/jenkins.yml:

---
name: myjenkins
director_uuid: <%= `bosh status | grep UUID | awk '{print $2}'` %>
networks: {}
properties:
  jenkins:
    ip_address: 1.2.3.4
    security_group: jenkins
    persistent_disk: 4096
    password: jEnKins

Then target it, update it with the simple template, and deploy it:

bosh deployment ~/deployments/jenkins.yml
bosh -n diff templates/v1/simple_deployment_file.yml.erb
bosh -n deploy

Create new final release

To create a new final release you need to get read/write API credentials to the @cloudfoundry-community s3 account.

Please email Dr Nic Williams and he will create unique API credentials for you.

Create a config/private.yml file with the following contents:

---
blobstore:
  s3:
    access_key_id:     ACCESS
    secret_access_key: PRIVATE

You can now create final releases for everyone to enjoy!

bosh create release
# test this dev release
git commit -m "updated jenkins"
bosh create release --final
git commit -m "creating vXYZ release"
git tag vXYZ
git push origin master --tags

jenkins-boshrelease's People

Contributors

drnic avatar mrdavidlaing avatar aespinosa avatar trastle 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.