Skip to content

saidsef/alpine-jenkins-dockerfile

Repository files navigation

Jenkins Docker Container CI Tagging Release

Jenkins is used to automate development workflows, so you can focus on work that matters most. Jenkins is commonly used for:

  • Building projects
  • Running tests to detect bugs and other issues as soon as they are introduced
  • Static code analysis
  • Deployment

Execute repetitive tasks, save time, and optimize your development process with Jenkins.

Plugin

Build and deploy locally

docker build -t docker.io/saidsef/alpine-jenkins-dockerfile:latest .
./scripts/run.sh

Once Jenkins is up and running go to http://127.0.0.1:8080

Deploy from remote repo

Locally

docker pull docker.io/saidsef/alpine-jenkins-dockerfile:latest
./scripts/run.sh

Once Jenkins is up and running go to http://localhost:8080

Kubernetes

kubectl apply -k ./deployment

Optional: Deploy to specific namespace via --namespace.

To login:

kubectl logs pod/<pod-name> -f | grep 'created local'

Default admin password will be print in the log output via the groovy script - be patient, depending on the available resources startup might take a while!

Once the service has been successfully deployed, use the following command to access login screen:

kubectl port-forward <pod-name> 8080:8080

Links

Source

Our latest and greatest source of Jenkins can be found on [GitHub]. Fork us!

Contributing

We would ❤️ you to contribute by making a pull request.

Please read the official Contribution Guide for more information on how you can contribute.