Skip to content

Instantly share code, notes, and snippets.

@mandibuswell
mandibuswell / gist:0cdb03f388c079a3ac1ac8e5a0e9e26a
Last active March 21, 2024 18:40
ARO Workshop Application
#This GIST is for use with the https://microsoft.github.io/aroworkshop/, it provides all the OC commands within the exercise in easy to use copy/paste automation.
#Before running this gist ensure you have forked the following
#https://github.com/MicrosoftDocs/mslearn-aks-workshop-ratings-api/fork
#https://github.com/MicrosoftDocs/mslearn-aks-workshop-ratings-web/fork
#update mslearn-aks-workshop-ratings-web for with these two files
#https://raw.githubusercontent.com/sajitsasi/rating-web/master/Dockerfile
#https://raw.githubusercontent.com/sajitsasi/rating-web/master/src/components/Footer.vue
githubname=mandibuswell
project=workshop
#setting up
PROJECT = "user10"
oc project $PROJECT
git clone https://github.com/RedHatGov/service-mesh-workshop-code.git
cd service-mesh-workshop-code && git checkout workshop-stable
oc get pods -n $PROJECT-istio
#LAB 1 - deploying the microservice application Version1
oc new-app -f ./config/app/boards-fromsource.yaml \
-p APPLICATION_NAME=boards \
@mandibuswell
mandibuswell / gist:38609985747fb68272dca4f24853e727
Last active August 26, 2021 22:20
startlab-pipelinefix.sh
# Add privileges to namespace for OCP4.7 fix for buildah permissions between 4.6 and 4.7
# Note: install OpenShift Pipelines onto the cluster before applying this script
numberOfUsers=30
startingUser=1
for ((i=$startingUser;i<=$numberOfUsers;i++)); do oc adm policy add-scc-to-user privileged -z pipeline -n user$i; echo user$i ;done
@mandibuswell
mandibuswell / workshop_debug.sh
Last active February 13, 2022 21:42 — forked from blues-man/workshop_debug_4.6.sh
This is a script to apply the Developer Start lab to a user namespace
#!/bin/bash
# Variables
NAMESPACE=workshop
PIPELINEFILE1=https://raw.githubusercontent.com/openshift-roadshow/nationalparks/master/pipeline/nationalparks-pipeline-all-vfs-new.yaml
PIPELINEFILE2=https://raw.githubusercontent.com/openshift-roadshow/nationalparks/master/pipeline/nationalparks-pipeline-all-new.yaml
# Add privileges to namespace for OCP4.7 fix for buildah permissions between 4.6 and 4.7
#oc adm policy add-scc-to-user privileged -z pipeline -n $NAMESPACE
# Project
oc new-project $NAMESPACE
# Parksmap