Skip to content

Chriscloudaz/nexus-sonar-jenkins-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Jenkins, Nexus, and SonarQube Installation Script

Introduction

This script automates the installation of Jenkins, Nexus, and SonarQube on a single EC2 instance. It is designed to save costs on AWS by consolidating multiple tools onto one server for practicing building CI/CD pipelines with Jenkins.

System Requirements

  • Instance Type: T2 or T3 Large
  • Storage: 30GB root volume
  • Operating System: Ubuntu

Screenshot 2024-04-03 at 15 49 42

Tools Installed

  • Jenkins
  • Docker
  • Nexus (Docker container)
  • SonarQube (Docker container)

Usage

  1. Clone this repository to your local machine:

    git clone https://github.com/Chriscloudaz/nexus-sonar-jenkins-install/

  2. Navigate to the directory containing the script:

    cd your-repo

  3. Execute the script:

    sudo bash install_tools.sh

  4. After installation, ensure that the default ports for the tools are allowed under the inbound rules of your EC2 instance:

    • Jenkins: Port 8080
    • Nexus: Port 8081
    • SonarQube: Port 9000
    • SSH: Port 22

Screenshot 2024-04-03 at 15 45 12

Important Note

Containers will stop whenever the instance is stopped. You can use the start_containers.sh script provided in this repository to start both containers again when you start your instance.

To access the shell of your container, please run the command docker exec -it "name of container" bash

You can get the name of your container by running docker ps

If you run into permission issues, do the following:

  • Run the command sudo usermod -aG docker ${USER}
  • Run sudo su ubuntu
  • Try again

Access URLs

After the installation is complete, you can access the following URLs to use the newly installed tools:

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages