Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jeff-labs/jenkins-pipeline-image

Jenkins pipeline images
https://github.com/jeff-labs/jenkins-pipeline-image

docker-images jenkins jenkins-pipeline-image node-pipeline

Last synced: 2 months ago
JSON representation

Jenkins pipeline images

Awesome Lists containing this project

README

        

# Jenkins pipeline images

Docker images to use as an agent in [Jenkins pipelines](https://www.jenkins.io/doc/book/pipeline/docker/).

Based in the [CircleCI images project](https://github.com/circleci/circleci-images) and the [Bitbucket pipelines default image](https://hub.docker.com/r/atlassian/default-image/)

## Status
![Build and push images](https://github.com/jeff-labs/jenkins-pipeline-image/workflows/Build%20and%20push%20images/badge.svg?branch=master)

## Images

### [jenkins-pipeline](https://hub.docker.com/repository/docker/mrjeffapp/jenkins-pipeline)
- `mrjeffapp/jenkins-pipeline`
- git
- aws-cli
- docker
- sonar-scanner

### [jenkins-pipeline-node](https://hub.docker.com/repository/docker/mrjeffapp/jenkins-pipeline-node)
- `mrjeffapp/jenkins-pipeline-node:8`
- `mrjeffapp/jenkins-pipeline-node:10`
- `mrjeffapp/jenkins-pipeline-node:12`
- `mrjeffapp/jenkins-pipeline-node:14`

### [jenkins-pipeline-java](https://hub.docker.com/repository/docker/mrjeffapp/jenkins-pipeline-java)
- `mrjeffapp/jenkins-pipeline-java:8`
- `mrjeffapp/jenkins-pipeline-java:11`
- `mrjeffapp/jenkins-pipeline-java:14`

### [jenkins-pipeline-php](https://hub.docker.com/repository/docker/mrjeffapp/jenkins-pipeline-php)
- `mrjeffapp/jenkins-pipeline-php:7.2`
- `mrjeffapp/jenkins-pipeline-php:7.4`

## Examples
### Node pipeline
```groovy
pipeline {
agent {
docker { image 'mrjeffapp/jenkins-pipeline-node:8' }
}

stages {

stage('Install') {
steps {
sh "yarn install"
}
}

}

}
```

### Node pipeline with docker support
```groovy
pipeline {
agent {
docker {
image 'mrjeffapp/jenkins-pipeline-node:12'
args '--group-add docker -v /var/run/docker.sock:/var/run/docker.sock'
}
}

stages {

stage('Install') {
steps {
sh "yarn install"
}
}

stage('Build') {
steps {
sh "docker build ."
}
}

}

}
```