Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.97 KB

README.md

File metadata and controls

51 lines (35 loc) · 1.97 KB

HitCount

jenkins-in-docker

Blog Posts:

Jenkins Docker Setup

This repository provides Docker resources for setting up Jenkins using Docker. It includes a Dockerfile and a docker-compose.yml file to simplify the process of running Jenkins in a containerized environment.

Getting Started

Follow these steps to get Jenkins up and running using Docker:

Prerequisites

  • Ensure that Docker is installed on your machine. If not, you can download and install Docker from Docker's official website.

Usage

  1. Clone this repository to your local machine:

    git clone https://github.com/aburaihan-dev/jenkins-in-docker.git
    cd jenkins-docker-setup
    
  2. Build the Jenkins Docker image:

    docker build -t jenkins-docker .
  3. Start Jenkins using Docker Compose:

    docker-compose up -d
  4. Access Jenkins in your browser by navigating to http://localhost:8080. Follow the on-screen instructions to complete the setup.

Generate SSH-key for connecting with Jenkins Agent via SSH

export AGENT_SSH_DIR="jenkins-agent-ssh-key" && mkdir -p ${AGENT_SSH_DIR} && ssh-keygen -t rsa -b 4096 -f ./${AGENT_SSH_DIR}/id_rsa

Customization

You can customize the Jenkins configuration by modifying the docker-compose.yml file or the Dockerfile based on your specific requirements.

Contributing

Feel free to contribute to this project by opening issues or submitting pull requests. Your feedback and contributions are highly appreciated.

License

This project is licensed under the MIT License.