{"id":31324779,"url":"https://github.com/divyamohan1993/devops-shell-scripts","last_synced_at":"2026-04-13T19:31:12.344Z","repository":{"id":311147432,"uuid":"1041881592","full_name":"divyamohan1993/devops-shell-scripts","owner":"divyamohan1993","description":"Hands-on DevOps training scripts and labs: Bash-first automation for containers, Kubernetes, CI/CD, observability, and DevSecOps, with safe defaults.","archived":false,"fork":false,"pushed_at":"2026-01-21T18:48:55.000Z","size":336,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-22T07:08:07.834Z","etag":null,"topics":["automation","ci-cd","devops","devsecops","docker","gitleaks","gradle","grafana","helm","jenkins","k8s","kustomize","linux","maven","observability","prometheus","shell-scripts","sonarqube"],"latest_commit_sha":null,"homepage":"https://dmj.one","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/divyamohan1993.png","metadata":{"files":{"readme":"README.md","changelog":"history/vm2.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-21T06:38:46.000Z","updated_at":"2026-01-21T18:48:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"528007cb-4f1b-4c12-9d87-1c56964145a3","html_url":"https://github.com/divyamohan1993/devops-shell-scripts","commit_stats":null,"previous_names":["divyamohan1993/devops-shell-scripts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/divyamohan1993/devops-shell-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyamohan1993%2Fdevops-shell-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyamohan1993%2Fdevops-shell-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyamohan1993%2Fdevops-shell-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyamohan1993%2Fdevops-shell-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/divyamohan1993","download_url":"https://codeload.github.com/divyamohan1993/devops-shell-scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divyamohan1993%2Fdevops-shell-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31768635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","ci-cd","devops","devsecops","docker","gitleaks","gradle","grafana","helm","jenkins","k8s","kustomize","linux","maven","observability","prometheus","shell-scripts","sonarqube"],"created_at":"2025-09-25T21:38:07.768Z","updated_at":"2026-04-13T19:31:12.320Z","avatar_url":"https://github.com/divyamohan1993.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca name=\"top\"\u003e\u003c/a\u003e\n\n\u003cdiv align=\"center\" style=\"display:flex;justify-content:center;align-items:center;gap:48px;\"\u003e\n  \u003ca href=\"https://shooliniuniversity.com/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://shooliniuniversity.com/assets/images/logo.png\" alt=\"Shoolini University — Logo\" height=\"72\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://lntedutech.com/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://lntedutech.com/wp-content/uploads/2024/01/edutech_logo.webp\" alt=\"L\u0026T EduTech — Logo\" height=\"72\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003ch1 align=\"center\"\u003eDevOps \u0026 Deployment: L\u0026amp;T EduTech Training Repository\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003ePrepared by \u003cstrong\u003eDivya Mohan\u003c/strong\u003e under the guidance of \u003cstrong\u003ePrashant Singh Gautam\u003c/strong\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/divyamohan1993/devops-shell-scripts/actions/workflows/lint.yml\"\u003e\n    \u003cimg alt=\"Lint status\" src=\"https://github.com/divyamohan1993/devops-shell-scripts/actions/workflows/lint.yml/badge.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"LICENSE\"\u003e\u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/badge/License-MIT-blue.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n### Academic Information\n\n- **Institution:** Shoolini University  \n- **Program:** DevOps \u0026 Deployment by L\u0026T EduTech (Hands-on Training)  \n- **Repository:** \u003ca href=\"https://github.com/divyamohan1993/devops-shell-scripts/\"\u003egithub.com/divyamohan1993/devops-shell-scripts\u003c/a\u003e\n\n\n\n## What this repo does for you\n\n**Short version:** it helps you **learn and practice real DevOps** with small, reproducible labs you can run safely on a VM or in containers. You’ll pick up solid Bash habits, build and ship containers, wire up CI, add observability, and keep security in the loop—without wading through bloated boilerplate.\n\n**You’ll get:**\n- **Copy‑pasteable Bash** with safe defaults (`bash -euxo pipefail`), ready to tweak.\n- **Container \u0026 K8s labs** that show *how* to deploy, not just *what* to click.\n- **CI and DevSecOps checks** (linting, secret scanning) you can reuse at work.\n- **Observability starters** (Prometheus/Grafana) to see what your services are doing.\n\nIf you want practical reps, fast feedback, and fewer gotchas then this is for you.\n\n---\n\n## Who it’s for\n\n- Students and early‑career engineers who want hands‑on, **production‑aware** workflows.  \n- Developers moving toward DevOps/SRE and looking for **sane, repeatable** scripts.  \n- Busy pros who want **small labs** to demo an idea before committing infra time.\n\n---\n\n## What’s inside (high‑level map)\n\n- `docker/` — container builds \u0026 compose examples  \n- `k8s/` — manifests, kind/minikube helpers, Helm/Kustomize snippets  \n- `jenkins/` — Jenkins auto‑config examples  \n- `sonarcube/` — SonarQube auto‑config + compose  \n- `prometheus/`, `grafana/` — metrics + dashboards starters  \n- `springboot/` — app bits used in some labs  \n- `zero-trust-mysql*` — experiments around safer DB access  \n- `autoscalling-loadbalancing-demo/` — scaling \u0026 LB demo scripts  \n\n\u003e Everything is designed to run in an **isolated environment** (container or throwaway VM) first. Start small, break safely, then harden.\n\n---\n\n## Quick start (5–10 minutes)\n\n```bash\n# 1) Clone\ngit clone https://github.com/divyamohan1993/devops-shell-scripts.git\ncd devops-shell-scripts\n\n# 2) Try a lab (example: a docker/ or k8s/ script)\n# Always run with strict bash flags while experimenting:\nbash -euxo pipefail ./docker/\u003csome-script\u003e.sh   # or k8s/, jenkins/, etc.\n\n# 3) (Optional) Run the linters locally\n#   Install shellcheck, then:\nshellcheck $(git ls-files '*.sh') || true\n\n# container scan examples\ntrivy image alpine:3.20\ngrype alpine:3.20\n\n# IaC checks\ncheckov -d ./iac\n````\n\n\u003e Tip: Prefer containers or a disposable VM. Never run unreviewed scripts on production systems.\n\n---\n\n## Learning objectives\n\n* Write **defensive Bash** (linted, logged, idempotent).\n* Build \u0026 ship **containers**; deploy to **Kubernetes** (Helm/Kustomize friendly).\n* Wire **CI** with quality/security gates (lint, secret scans).\n* Manage **IaC** choices and environment promotion.\n* Add **observability**: metrics, dashboards, and basic alerts.\n\n---\n\n## Table of Contents\n\n1. **Overview \u0026 Scope**\n\n   * [Introduction](#introduction)\n   * [Learning Objectives](#learning-objectives)\n   * [Methodology \u0026 Lab Format](#methodology--lab-format)\n   * [Environment \u0026 Prerequisites](#environment--prerequisites)\n   * [Repository Structure](#repository-structure)\n   * [How to Use This Repository](#how-to-use-this-repository)\n\n2. **Hands-on Materials**\n\n   * [Quick start](#quick-start)\n   * [DevOps — Top 10 Daily Things \u0026 the Tools You’ll See](#devops--top-10-daily-things--the-tools-youll-see)\n   * [DevSecOps — Top 10 Daily Things \u0026 the Tools You’ll See](#devsecops--top-10-daily-things--the-tools-youll-see)\n\n3. **Policy \u0026 Credits**\n\n   * [Notes, Credits \u0026 Responsible Use](#notes-credits--responsible-use)\n   * License \u0026 Trademarks (see **LICENSE**)\n\n---\n\n## Why DevOps\n\n\u003cdiv style=\"text-align: justify !important\"\u003e\nThis course emphasizes the outcomes DevOps enables: repeatable builds, safe releases, faster feedback, and secure-by-default systems. The following “Top 10” lists map these outcomes to the most common, enterprise-grade capabilities you’ll exercise in labs and in real-world teams.\n\u003c/div\u003e\n\n## DevOps — Top 10 Daily Tools\n\n1. **Git-based source control \u0026 PR flow**\n   Tools: GitHub / GitLab / Bitbucket. (Git is near-universal across teams.)\n\n2. **CI/CD pipelines**\n   Tools: GitHub Actions, Jenkins, GitLab CI, Azure DevOps, CircleCI.\n\n3. **Containers**\n   Tools: Docker, Podman.\n\n4. **Orchestration / platform**\n   Tools: Kubernetes (+ Helm, Kustomize, Argo CD/Flux). (Cloud-native adoption is widespread; K8s is common in production.)\n\n5. **Infrastructure as Code**\n   Tools: Terraform/OpenTofu, CloudFormation, Pulumi.\n\n6. **Config \u0026 release management**\n   Tools: Ansible, Helm, Packer.\n\n7. **Observability (metrics + dashboards + alerting)**\n   Tools: Prometheus + Grafana; Datadog, New Relic, Splunk.\n\n8. **Centralized logging**\n   Tools: Elastic Stack (Elasticsearch/Logstash/Kibana), Loki, **AWS CloudWatch / Google Cloud Logging (formerly Stackdriver)**.\n\n9. **Artifact \u0026 container registries**\n   Tools: Artifactory, Nexus, Harbor; GitHub/GitLab Packages; ECR/GCR/ACR.\n\n10. **Project tracking \u0026 ChatOps**\n    Tools: Jira / GitHub Issues / Azure Boards; Slack / Microsoft Teams for alerts \u0026 runbooks.\n\n## DevSecOps — Top 10 Daily Tools\n\n1. **Software Composition Analysis (SCA) \u0026 dependency updates**\n   Tools: Dependabot, Snyk, OWASP Dependency-Check, Renovate.\n\n2. **Secrets hygiene \u0026 leak prevention**\n   Tools: GitHub Secret Scanning, Gitleaks, TruffleHog.\n\n3. **Static Application Security Testing (SAST) in CI**\n   Tools: SonarQube/SonarCloud, Semgrep, Checkmarx, Veracode, GitLab SAST.\n\n4. **Dynamic testing of running apps (DAST)**\n   Tools: OWASP ZAP, Burp Suite, StackHawk.\n\n5. **Container/image \u0026 artifact scanning**\n   Tools: Trivy, Grype, Anchore, Clair; Syft for SBOMs.\n\n6. **IaC \u0026 K8s policy checks (shift-left)**\n   Tools: Checkov, tfsec/Terrascan; **Policy-as-Code with OPA/Conftest**, Kyverno.\n\n7. **Secrets management**\n   Tools: HashiCorp Vault (incl. HCP Vault), External Secrets Operator, cloud KMS.\n\n8. **Supply chain integrity: SBOMs \u0026 signing**\n   Tools: Syft/CycloneDX/SPDX for SBOMs; **Sigstore cosign** for signing/attestations.\n\n9. **Runtime \u0026 cloud-native threat detection**\n   Tools: **Falco**; plus CNAPP/CSPM platforms (Wiz/Prisma/Defender/etc.).\n\n10. **Vulnerability management \u0026 SIEM/SOAR**\n    Tools: Tenable Nessus, Qualys, Defender for Cloud; SIEMs: Splunk, Sentinel.\n\n---\n\n## Notes, Credits \u0026 Responsible Use\n\n* **Contributor:** Divya Mohan — learning in public, iterating fast.\n* **Academic context:** Shoolini University × L\\\u0026T EduTech DevOps training.\n* **Trainer:** Prashant Singh Gautam.\n\n### Responsible use\n\nThese scripts are for **learning and prototyping**. Review before running, prefer containers/VMs, and never run unvetted commands on production systems. Replace placeholders, keep secrets out of source control, and enable branch protections + required checks. **No warranty; use at your own risk.**\n\n### Acknowledgments\n\nThanks to the instructor, peers, and the broader open-source community whose tools and docs make this work possible.\n\n### Contact \u0026 Contributions\n\nHave ideas or spot issues? Please open a **GitHub Issue** in this repo. Discussions and PRs welcome—start with a Discussion for ideas. See **CONTRIBUTING.md** for the fast path (branch naming, checks, PR checklist). Please report security findings privately (see **SECURITY.md**).\n\n\n### License \u0026 attribution\n\nMIT © Divya Mohan. Logos belong to their respective owners and are used only for identification.\n\n\u003cp align=\"right\"\u003e\u003ca href=\"#top\"\u003eBack to top ↑\u003c/a\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivyamohan1993%2Fdevops-shell-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivyamohan1993%2Fdevops-shell-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivyamohan1993%2Fdevops-shell-scripts/lists"}