Skip to content

Instantly share code, notes, and snippets.

# Source: https://gist.github.com/627fcfbfbc17a683a70210947e02eaa3
##########
# Kaniko #
##########
open https://github.com/vfarcic/kaniko-demo
# Fork it
# Source: https://gist.github.com/3bb98ff6e782f993839020fa3b3f5ce3
######################################################################
# Create And Manage GitOps-Ready Kubernetes Clusters With Crossplane #
# https://youtu.be/AVHyltqgmSU #
######################################################################
# Referenced videos:
# - Crossplane - GitOps-based Infrastructure as Code through Kubernetes API: https://youtu.be/n8KjVmuHm7A
# - How To Shift Left Infrastructure Management Using Crossplane Compositions: https://youtu.be/AtbS1u2j7po
@klapcsik
klapcsik / kind-argo.sh
Created October 15, 2022 07:24 — forked from eddycharly/kind-argo.sh
Kind / ArgoCD / Kyverno
#!/usr/bin/env bash
set -e
# CONSTANTS
readonly KIND_IMAGE=kindest/node:v1.24.4
readonly NAME=argo
# CREATE CLUSTER
# Source: https://gist.github.com/57689b4095d9c7825baef3c2aec201ea
#######################################################################
# How To Manage Kubernetes Applications Using Crossplane Compositions #
# https://youtu.be/eIQpGXUGEow #
#######################################################################
# Referenced videos:
# - Production-Ready Kubernetes Clusters Using Crossplane Compositions: https://youtu.be/uMC2QQfMctg
# - How To Shift Left Infrastructure Management Using Crossplane Compositions: https://youtu.be/AtbS1u2j7po
# Source https://gist.github.com/269d2e963f2857ca857d2b99f40dead2
git clone https://github.com/vfarcic/devops-toolkit-crossplane
cd devops-toolkit-crossplane
# Create a local Kubernetes cluster
kubectl create namespace crossplane-system
# Source: TODO:
#########
# TODO: #
# TODO: #
#########
# Additional Info:
# - Production-Ready Kubernetes Clusters Using Crossplane Compositions: https://youtu.be/uMC2QQfMctg
# - How To Shift Left Infrastructure Management Using Crossplane Compositions: https://youtu.be/AtbS1u2j7po
@klapcsik
klapcsik / docker-compose.yml
Created September 22, 2022 12:49 — forked from ThabetAmer/docker-compose.yml
Run SonarQube and SonarScanner in Docker-compose
#
# Based on https://hub.docker.com/_/sonarqube
#
version: "3.7"
services:
sonarqube:
container_name: sonarqube
@klapcsik
klapcsik / harbor-retag-all.sh
Created September 22, 2022 12:48 — forked from ThabetAmer/harbor-retag-all.sh
Copies all tagged images with defined tag to a new one - using Harbor Retag feature.
#!/bin/bash
# Copies all tagged images with defined tag to a new one - using Harbor Retag feature.
# config vars
SRC_TAG="latest"
DST_TAG="v1"
HARBOR_API_URL="https://hostname/api"
HARBOR_USR="username"
HARBOR_PSW="password"
# Alfresco users
curl -s -u user:pass http://localhost:8080/alfresco/service/api/people | jq '.people[] .userName'
curl -s -u user:pass http://localhost:8080/alfresco/service/api/people | jq '.people[] | "\(.userName),\(.firstName),\(.lastName),\(.email)"'
# Alfresco groups
curl -s -u user:pass http://localhost:8080/alfresco/service/api/groups | jq '.data[] .shortName'
curl -s -u user:pass http://localhost:8080/alfresco/service/api/groups | jq '.data[] | "\(.shortName),\(.fullName),\(.displayName)"'
@klapcsik
klapcsik / Jenkinsfile
Created September 22, 2022 07:56 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples