Skip to content

Jenkins 2 inside docker containers using containers as slaves to build PHP and NodeJS

License

Notifications You must be signed in to change notification settings

jeffersonsouza/jenkins-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins 2 with Docker

Jenkins 2 inside docker containers using containers as slaves to build PHP and NodeJS

To run this project, just clone, and run the docker compose file. It will start the Jenkins Master with useful plugins and PHP 5.6, PHP 7 and NodeJS 4 slaves.

To start via docker compose:

docker-compose.yml

version: '2'
services:
    jenkins:
        image: jeffersonsouza/jenkins:alpine
        privileged: true
        restart: always
        ports:
            - "8085:8080"
            - "50000:50000"
        volumes:
            - jenkins-data:/var/jenkins_home/
            - /var/run/docker.sock:/var/run/docker.sock
    node:
        image: jeffersonsouza/jenkins:slave-node
        privileged: true
        ports:
            - 22
        volumes:
            - jenkins-data:/var/jenkins_home/
            - /var/run/docker.sock:/var/run/docker.sock
    php:
        image: jeffersonsouza/jenkins:slave-php
        privileged: true
        ports:
            - 22
        volumes:
            - jenkins-data:/var/jenkins_home/
            - /var/run/docker.sock:/var/run/docker.sock
    php56:
        image: jeffersonsouza/jenkins:slave-php5
        privileged: true
        ports:
            - 22
        volumes:
            - jenkins-data:/var/jenkins_home/
            - /var/run/docker.sock:/var/run/docker.sock
volumes:
    jenkins-data:
        driver: local

then run docker-compose up -d

@todo More docs: soon. :)

About

Jenkins 2 inside docker containers using containers as slaves to build PHP and NodeJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published