Creates Jenkins Docker image for use in article Using Jenkins Configuration as Code to setup AWS slave agents automatically.
Build image and run Jenkins locally with ./gradlew docker dockerRun
.
Access Jenkins at http://localhost:8080 and use the JENKINS_USERNAME
and JENKINS_PASSWORD
credentials defined in build.gradle
Push image to Docker Hub with ./gradlew docker dockerTagLatest dockerPushLatest
.
Contact me if you need help at tom@tomgregory.com.