Coder Social home page Coder Social logo

shazchaudhry / docker-jenkins Goto Github PK

View Code? Open in Web Editor NEW
42.0 3.0 28.0 68 KB

Customized image with docker and selected plugin pre-backed. This image makes use of docker secrets and runs in a swarm cluster

Groovy 55.49% Shell 6.92% Dockerfile 37.58%
jenkins keycloak blueocean swarm docker-secrets vagrantfile docker docker-environment portainer

docker-jenkins's Introduction

Build Status on Travis

This image extends the latest version of Jenkins Continuous Integration and Delivery server. Additionally, it comes with the latest stable version of Docker engine and the following plugins are pre-installed:

Create local environment

  • Clone this repository: git clone https://github.com/shazChaudhry/docker-jenkins.git
  • Change directory: cd docker-jenkins
  • Run provided vagrantfile: vagrant up
  • ssh to the vagrant box: vagrant ssh
  • Change to synched folder: cd /vagrant

play-with-docker environment

  • Navigate to http://play-with-docker.com/ and create docker swarm environment
  • Clone this repository: git clone https://github.com/shazChaudhry/docker-jenkins.git && cd docker-jenkins

Instructions to run Jenkins

  1. Execute this step if building the image from source. Otherwise skip to step 2 Use the following command to build the image from source:
    docker image build --no-cache \
    --tag shazchaudhry/docker-jenkins:latest \
    --build-arg GIT_COMMIT=$(git log -1 --format=%H) .

    Run this command to confirm git commit:-
    docker image inspect shazchaudhry/docker-jenkins:latest | jq '.[].ContainerConfig.Labels'
  1. Use the following commands to run the image:
    echo "admin" | docker secret create jenkins-user -
    echo "admin" | docker secret create jenkins-pass -
    docker stack deploy --compose-file=docker-compose.yml jenkins
    docker stack services jenkins

Test

  • If provided vagrantfile is being used, in your favorite web browser, navigate to http://node1/jenkins
    • username = admin
    • password = admin

Visualization

  • docker stack deploy --compose-file=docker-compose.portainer.yml portainer Use Portainer agent setup to deploy inside a Swarm cluster
  • Portainer is available at http://node1:9000. Portainer documentation is here on github

Clean up:

  • vagrant destroy --force destroy all VMs that were created above

docker-jenkins's People

Contributors

shazchaudhry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-jenkins's Issues

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.