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 | |
# Project | |
oc new-project workshop | |
# Parksmap | |
oc policy add-role-to-user view -z default | |
oc new-app quay.io/openshiftroadshow/parksmap:latest --name=parksmap -l 'app=workshop,component=parksmap,role=frontend,app.kubernetes.io/part-of=workshop' | |
oc create route edge parksmap --service=parksmap | |
# Nationalparks | |
oc new-app java:openjdk-11-ubi8~https://github.com/openshift-roadshow/nationalparks.git --name nationalparks -l 'app=workshop,component=nationalparks,role=backend,app.kubernetes.io/part-of=workshop,app.kubernetes.io/name=java' | |
oc expose svc nationalparks |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmUATBmAui8ap9YqwjbXoEl/1QuNUW30+sZzkdcfycDw1gjBkGuKnYJGtozT4uxUHvBGEjcEwZumU2wKpVyz7FbXlCTGVvo7clIi+Il6heTNupNCWxywLnFR8vKUCQ9tCdiU4cGN2mqKEOSg2Pf55BicZzrKKyD3OPbZ8urzH0ICj/Aht6Z9yTM17MadjJGoLFO11RM8ADj2mLcb1jqNVWInO1y4A5X8nRQTf6IKiX/fHKRFJrlb1cEstZn/vMB8QQthHV9e1joCMVm5B2jV1+8WvFmM+SpWYF8ZoruAwqHJPrdYOjeFbRiZfGiunmsPbo9W55ZddWbaYoyaCn1q/d bluesman@elwood |
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 | |
# Project | |
oc new-project workshop | |
# Parksmap | |
oc new-app quay.io/openshiftroadshow/parksmap:1.3.0 --name=parksmap -l 'app=workshop,component=parksmap,role=frontend,app.kubernetes.io/part-of=workshop' | |
oc create route edge parksmap --service=parksmap | |
oc policy add-role-to-user view -z default | |
oc rollout restart deploy/parksmap | |
# Nationalparks | |
oc new-app java~https://github.com/openshift-roadshow/nationalparks.git --name nationalparks -l 'app=workshop,component=nationalparks,role=backend,app.kubernetes.io/part-of=workshop,app.kubernetes.io/name=java' |
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
#!/usr/bin/python | |
import csv | |
import country_converter | |
import json | |
import requests | |
file = [] | |
API_KEY = '' |
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
metadata: | |
name: spring-boot-nationalparks- | |
projects: | |
- name: spring-boot-nationalparks | |
source: | |
location: 'https://github.com/openshift-roadshow/nationalparks.git' | |
type: git | |
components: | |
- id: redhat/java8/latest | |
type: chePlugin |
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
kind: DaemonSet | |
apiVersion: apps/v1 | |
metadata: | |
name: images-prepull | |
namespace: foo | |
spec: | |
selector: | |
matchLabels: | |
app: images-prepull | |
template: |
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
apiVersion: v1 | |
kind: BuildConfig | |
metadata: | |
annotations: | |
pipeline.alpha.openshift.io/uses: '[{"name": "jenkins", "namespace": "", "kind": "DeploymentConfig"}]' | |
labels: | |
app: petclinic | |
name: petclinic | |
name: petclinic-pipeline | |
spec: |
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 | |
# Run this in your katacoda scenario git repo: https://www.katacoda.community/ | |
# Requires setup of Incoming Webhook on Slack: https://api.slack.com/messaging/webhooks | |
SCENARIO_URL='https://katacoda.com/<USER>/courses/<NAME>' | |
SLACK_WEBHOOK_URL='https://hooks.slack.com/services/<YOUR_INCOMING_WEBHOOK_PATH' | |
commit_id=`git log --pretty=format:'%H' -n 1` | |
echo "Checking if scenario has been updated on Katacoda.." |
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 | |
# Run this in your katacoda scenario git repo | |
# Requires setup of Incoming Webhook on Slack | |
SCENARIO_URL='https://katacoda.com/<USER>/courses/<NAME>' | |
SLACK_WEBHOOK_URL='https://hooks.slack.com/services/<YOUR_INCOMING_WEBHOOK_PATH' | |
commit_id=`git log --pretty=format:'%H' -n 1` | |
until curl -s $SCENARIO_URL | grep $commit_id > /dev/null 2>&1 |
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
{ | |
"ignition":{ | |
"config":{ | |
"append":[ | |
{ | |
"source":"https://api-int.test.net:22623/config/master", | |
"verification":{ | |
} | |
} |