Skip to content

An image base for linting and ci/cd of Jenkinsfiles and related Shared Libraries written in groovy.

License

Notifications You must be signed in to change notification settings

calebHankins/jankins

Repository files navigation

jankins

logo

GitHub Actions

An image base for linting and ci/cd of Jenkinsfiles and related Shared Libraries written in groovy.

Build

Run these commands from the same folder as this readme. Tweak the Dockerfile to meet your needs.

docker build --pull --rm -f "Dockerfile" -t jankins .

Run

# Start the container and run bash interactively
docker run --rm --entrypoint bash -it jankins

# Start container and run Jenkins exposed on host port 8001, with custom env vars set
docker run --rm -p '8081:8080' -it -e JENKINS_EXECUTORS=4 -e JENKINS_USER='admin2' -e JENKINS_PASSWD='welcome1'  jankins
# Exposed as: http://0.0.0.0:8081

Run Params

  • The Jenkins env can be customized at runtime via the following Docker env vars. Sample values are shown below.
JENKINS_USER=jankins
JENKINS_PASSWD=jankins
JENKINS_EXECUTORS=1

Related Links & Credits

About

An image base for linting and ci/cd of Jenkinsfiles and related Shared Libraries written in groovy.

Resources

License

Stars

Watchers

Forks

Packages