This script automates the installation of an OpenShift cluster on Linux systems. Below are the prerequisites and instructions to run the script on Linux and Mac.
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
[ | |
{ | |
"paths": 20, | |
"hours": 7, | |
"minutes": 40, | |
"description": "In this learning path, I'll demonstrate how anyone can run a distributed AI workload on Red Hat OpenShift using just a few nodes and GPUs. ", | |
"label": "RoCE multi-node AI training on Red Hat OpenShift", | |
"url": "https://developers.redhat.com/learn/openshift/roce-multi-node-ai-training-red-hat-openshift" | |
}, | |
{ |
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: backstage.io/v1alpha1 | |
kind: User | |
metadata: | |
name: lucifergene | |
spec: | |
profile: | |
# Intentional no displayName for testing | |
email: avikkundu8d@gmail.com | |
memberOf: [temp-team-a] |
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
--- | |
#BEFORE TASK | |
apiVersion: tekton.dev/v1beta1 | |
kind: Task | |
metadata: | |
name: before | |
spec: | |
steps: | |
- image: quay.io/avik6028/busybox:latest | |
name: before |
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: Namespace | |
metadata: | |
name: nodejs | |
labels: | |
name: nodejs | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: |
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
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
const html404 = `<!DOCTYPE html> | |
<body> | |
<h1>404 Not Found.</h1> | |
<p>The url you visit is not found.</p> | |
</body>` |
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
#set($DDBResponse = $input.path('$')) | |
#if ($DDBResponse.toString().contains("Item")) | |
#set($context.responseOverride.header.Location = $DDBResponse.Item.longURL.S) | |
#end |
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
{ | |
"Key": { | |
"shortId": { | |
"S": "$input.params().path.shortId" | |
} | |
}, | |
"TableName": "URL-Shortener" | |
} |
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
#set($DDBResponse = $input.path('$')) | |
{ | |
"shortURL": "$DDBResponse.Attributes.shortId.S", | |
"longURL": "$DDBResponse.Attributes.longURL.S", | |
"owner": "$DDBResponse.Attributes.owner.S" | |
} |
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
{ | |
"TableName": "URL-Shortener", | |
"ConditionExpression": "attribute_not_exists(id)", | |
"Key": { | |
"shortId": { | |
"S": $input.json('$.shortURL') | |
} | |
}, | |
"ExpressionAttributeNames": { | |
"#u": "longURL", |
NewerOlder