Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 

Repository files navigation

DevOps Essential Setup

License GitHub stars GitHub forks GitHub issues GitHub contributors Script Usage

Welcome to the DevOps Essential Setup repository! This repository contains essential scripts and configurations to streamline the setup of various types of projects on the cloud. It simplifies the process of setting up Docker, Nginx, SSL, and other DevOps tools, ensuring a smoother and more efficient deployment process.

Features

  • Easy Docker Installation: Quickly set up Docker on your server.
  • Nginx Configuration: Automate the configuration of Nginx to serve your applications.
  • SSL Certificate Installation: Secure your applications with automated SSL installation using Certbot.
  • Customizable Scripts: Pass variables directly to the script for flexible and universal setups.

Usage

If you want to clone the entire repository and use the scripts:

  1. Clone the Repository

    git clone https://github.com/023PrashantSharma/devops-setup.git
    cd devops-setup
  2. Setup nextjs project

    • Clone and run the setup script:
    curl -O https://raw.githubusercontent.com/023PrashantSharma/devops-setup/main/setup-script/setup-nextjs-part1.sh
    curl -O https://raw.githubusercontent.com/023PrashantSharma/devops-setup/main/setup-script/setup-nextjs-part2.sh
    chmod +x setup-nextjs-part1.sh setup-nextjs-part2.sh
    ./setup-nextjs-part1.sh --domain <DOMAIN> --container-name <CONTAINER_NAME> --image-name <IMAGE_NAME> --port <PORT> --email <EMAIL>
    • Important: If script stop before sucess message between running the above script, log out and log back in to apply Docker group changes.

    • Run the follow-up script after logging back in:

    ./setup-nextjs-part2.sh  --domain <DOMAIN> --container-name <CONTAINER_NAME> --image-name <IMAGE_NAME> --port <PORT> --email <EMAIL>
    • Clone the Dockerfile and `cicd.yml` file for setting up GitHub workflows:
    curl -O https://raw.githubusercontent.com/023PrashantSharma/devops-setup/tree/main/github-workflow/nextjs/Dockerfile
    curl -O https://raw.githubusercontent.com/023PrashantSharma/devops-setup/tree/main/github-workflow/nextjs/cicd.yml
  3. Setup node-postgres project

    • Run the initial setup script:
    curl -O https://raw.githubusercontent.com/023PrashantSharma/devops-setup/main/setup-script/setup-node-pg-part1.sh
    curl -O https://raw.githubusercontent.com/023PrashantSharma/devops-setup/main/setup-script/setup-node-pg-part2.sh
    chmod +x setup-node-pg-part1.sh setup-node-pg-part2.sh 
    ./setup-node-pg-part1.sh --domain <DOMAIN> --container-name <CONTAINER_NAME> --image-name <IMAGE_NAME> --port <PORT> --db-port <DB_PORT> --email <EMAIL>
    • Important: If script stop before sucess message between running the above script, log out and log back in to apply Docker group changes.

    • Run the follow-up script after logging back in:

    ./setup-node-pg-part12.sh --domain <DOMAIN> --container-name <CONTAINER_NAME> --image-name <IMAGE_NAME> --port <PORT> --db-port <DB_PORT> --email <EMAIL>
    • Clone the Dockerfile and `cicd.yml` file for setting up GitHub workflows:
    curl -O https://raw.githubusercontent.com/023PrashantSharma/devops-setup/main/github-workflow/node-postgres/Dockerfile
    curl -O https://raw.githubusercontent.com/023PrashantSharma/devops-setup/main/github-workflow/node-postgres/cicd.yml
  4. Setup docker registery

    • Run the initial setup script:
    curl -O https://raw.githubusercontent.com/023PrashantSharma/devops-setup/main/setup-script/setup-docker-registry-part1.sh
    curl -O https://raw.githubusercontent.com/023PrashantSharma/devops-setup/main/setup-script/setup-docker-registry-part2.sh
    chmod +x setup-docker-registry-part1.sh setup-docker-registry-part2.sh
    ./setup-docker-registry-part1.sh --domain <DOMAIN> --port <PORT> --email <EMAIL>  --username <USERNAME> --password <PASSWORD>
    • Important: If script stop before sucess message between running the above script, log out and log back in to apply Docker group changes.

    • Run the follow-up script after logging back in:

    ./setup-docker-registry-part2.sh --domain <DOMAIN> --port <PORT> --email <EMAIL>  --username <USERNAME> --password <PASSWORD>
  5. Setup PHP MySQL

    • Run the initial setup script:
    curl -O https://raw.githubusercontent.com/023PrashantSharma/devops-setup/main/setup-script/setup-php-mysql-part1.sh
    curl -O https://raw.githubusercontent.com/023PrashantSharma/devops-setup/main/setup-script/setup-php-mysql-part2.sh
    chmod +x setup-php-mysql-part1.sh setup-php-mysql-part2.sh
    ./setup-php-mysql-part1.sh --domain <DOMAIN> --container-name <CONTAINER_NAME> --image-name <IMAGE_NAME> --port <PORT> --db-port <DB_PORT> --email <EMAIL>
    • Important: If script stop before sucess message between running the above script, log out and log back in to apply Docker group changes.

    • Run the follow-up script after logging back in:

    ./setup-php-mysql-part2.sh --domain <DOMAIN> --container-name <CONTAINER_NAME> --image-name <IMAGE_NAME> --port <PORT> --db-port <DB_PORT> --email <EMAIL>

About

Essential script

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages