Skip to content

Instantly share code, notes, and snippets.

View mysticrenji's full-sized avatar
🎯
Focusing

Renjith Ravindranathan mysticrenji

🎯
Focusing
View GitHub Profile
controller:
adminSecret: true
adminUser: admin
adminPassword: "@wesome!1"
numExecutors: 0
installPlugins:
- configuration-as-code:latest
- kubernetes:latest
- workflow-aggregator:latest
- workflow-job:latest
@mysticrenji
mysticrenji / sonar_values.yaml
Created March 11, 2021 09:10
Sonarqube Helm Chart Values
# Default values for sonarqube.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
# This will use the default deployment strategy unless it is overriden
deploymentStrategy: {}
# Uncomment this to scheduler pods on priority
# priorityClassName: "high-priority"
@mysticrenji
mysticrenji / Jenkinsfile_Docker
Last active March 11, 2021 09:03
Jenkinsfile for Docker
podTemplate(yaml: """
apiVersion: v1
kind: Pod
spec:
containers:
- name: docker
image: docker:1.11
command: ['cat']
tty: true
volumeMounts:
@mysticrenji
mysticrenji / Jenkinsfile_JavaApp
Last active March 11, 2021 09:00
Jenkins file for simple java app
podTemplate(containers: [
containerTemplate(name: 'maven', image: 'maven:3.3.9-jdk-8-alpine', ttyEnabled: true, command: 'cat'),
]) {
node(POD_LABEL) {
stage('Get a Maven project') {
git 'https://github.com/mysticrenji/jenkins-k8s-cluster-terraform.git'
container('maven') {
stage('Build a Maven project') {
withSonarQubeEnv('SonarQube') {
@mysticrenji
mysticrenji / sonarqube.txt
Created March 11, 2021 08:29
SonarQube Helm Chart
cd Sonarqube
helm repo add oteemocharts https://oteemo.github.io/charts/
helm repo update
kubectl create namespace sonarqube
helm install sonarqube -f values.yaml oteemocharts/sonarqube -n sonarqube
@mysticrenji
mysticrenji / Jenkins.txt
Created March 11, 2021 08:12
Jenkins Helm Chart Installation
cd Jenkins
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo add jenkins https://charts.jenkins.io
helm repo update
# Use Helm to deploy an NGINX ingress controller
kubectl create namespace jenkins
helm install nginx-ingress ingress-nginx/ingress-nginx \
--namespace jenkins \
--set controller.replicaCount=2 \
--set controller.nodeSelector."beta\.kubernetes\.io/os"=linux \
@mysticrenji
mysticrenji / blobstoragcreation.sh
Created March 11, 2021 07:03
Blob Storage Creation
#!/bin/bash
RESOURCE_GROUP_NAME=rg-experiments-sea
STORAGE_ACCOUNT_NAME=terraformblobstoragedev
CONTAINER_NAME=terraform
LOCATION=southeastasia
# Create resource group
az group create --name $RESOURCE_GROUP_NAME --location $LOCATION
@mysticrenji
mysticrenji / azure-pipelines.yml
Created August 1, 2020 06:38
Azure pipelines with integrated Sonar, WhiteSource and OWASP
# ASP.NET Core (.NET Framework)
trigger:
- master
stages:
- stage: BuildDeployStage
jobs:
- job: Build
pool: Default
048376f408b650968d65775d5de1db83ee2dc6ad677859dc4e3170ac4f91a3aab62ec3ff006d1e77a4ba5bba5710b7ed48e64e9a5b43d2c90956d490cd664b9cf8