View Jenkins-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
controller: | |
adminSecret: true | |
adminUser: admin | |
adminPassword: "@wesome!1" | |
numExecutors: 0 | |
installPlugins: | |
- configuration-as-code:latest | |
- kubernetes:latest | |
- workflow-aggregator:latest | |
- workflow-job:latest |
View sonar_values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
View Jenkinsfile_Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
podTemplate(yaml: """ | |
apiVersion: v1 | |
kind: Pod | |
spec: | |
containers: | |
- name: docker | |
image: docker:1.11 | |
command: ['cat'] | |
tty: true | |
volumeMounts: |
View Jenkinsfile_JavaApp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') { |
View sonarqube.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
View Jenkins.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ |
View blobstoragcreation.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
View azure-pipelines.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ASP.NET Core (.NET Framework) | |
trigger: | |
- master | |
stages: | |
- stage: BuildDeployStage | |
jobs: | |
- job: Build | |
pool: Default |
View genesis_public_key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
048376f408b650968d65775d5de1db83ee2dc6ad677859dc4e3170ac4f91a3aab62ec3ff006d1e77a4ba5bba5710b7ed48e64e9a5b43d2c90956d490cd664b9cf8 |