- Alpine Linux based.
- Jenkins with BlueOcean plugin.
- Installed
dokcer
anddocker-compose
command.
This image is created based on jenkins:alpine. Please details and options see jenkins:alpine.
docker pull ringo/jenkins
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/lib/jenkins:/var/jenkins_home \
-p 8080:8080 -p 50000:50000 \
--name jenkins -d -u root ringo/jenkins
docker build -t ringo/jenkins .
Share /var/run/docker.sock
file between host and container.
#!groovy
pipeline {
agent {docker 'ringo/sbt'}
stages {
stage('lint') {
steps {
sh 'echo "Execute scalastyle check"'
}
}
stage('outdated') {
steps {
sh 'echo "Check library outdated"'
}
}
stage('test') {
steps {
sh 'echo "Run test and covarage"'
}
}
stage('release') {
steps {
sh 'echo "Release"'
}
}
}
}