This file contains hidden or 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 | |
# 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 |
This file contains hidden or 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
# 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 |
This file contains hidden or 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
#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 \ |
This file contains hidden or 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
#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 |