Giter VIP home page Giter VIP logo

jenkins-setup's Introduction

##Prerequisites:

  • Packer
  • Terraform

These can be installed using homebrew if you have it as follows:

brew tap unofficial-cask/hashicorp-tap [email protected]:unofficial-cask/hashicorp-tap.git

brew install packer

brew install terraform

The latest versions of each is fine.

##Running Instructions:

Set AWS Access Keys for use:

export AWS_ACCESS_KEY_ID=<my access key>
export AWS_SECRET_ACCESS_KEY=<my secret access key>

To Build the AMI for use in Terraform:

cd packer/
make ami

That will build an ami named ubuntu-jenkins-master-<date> in us-west-2

To build the environment:

cd ../terraform
make ssh-key
make plan

That should give an output ending:

Plan: 16 to add, 0 to change, 0 to destroy.

Then apply the changes if correct:

make apply

The output should look as follows (ignore the yellow text in Terraform 0.7.9 - that's an experimental feature we run in the backgroud that has no bearing on your infra!)

Apply complete! Resources: 16 added, 0 changed, 0 destroyed.

We print the Jenkins Address to the output. Take that address and put it into the browser and you will see a message that looks as follows:

To ensure Jenkins is securely set up by the administrator, a password has been written to the log (not sure where to find it?) and this file on the server:

To get the key, use the terminal output jenkins_ssh_instructions

e.g.

ssh -i ssh/jenkins [email protected]
sudo cat /var/lib/jenkins/secrets/initialAdminPassword

Put that password into the screen et voila!

jenkins-setup's People

Contributors

stack72 avatar

Stargazers

Alexandre Nicastro avatar

Watchers

 avatar  avatar

Forkers

vinodverma7584

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.