From ee37ac25d3b7e609637df16e32fec923596728f3 Mon Sep 17 00:00:00 2001 From: Tosin Akinosho Date: Thu, 15 Feb 2024 14:07:29 -0500 Subject: [PATCH] updating docs --- _deployments/configure_rhods.markdown | 47 ++++++++++++++++++++++ _deployments/developer_deployment.markdown | 4 ++ _deployments/run_tekton_pipeline.markdown | 5 ++- 3 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 _deployments/configure_rhods.markdown diff --git a/_deployments/configure_rhods.markdown b/_deployments/configure_rhods.markdown new file mode 100644 index 0000000..0670b3a --- /dev/null +++ b/_deployments/configure_rhods.markdown @@ -0,0 +1,47 @@ +--- +# This is the Front Matter section where you can set variables used by Jekyll +layout: post +title: "Run tekton pipeline" +description: "Revolutionizing Nut Quality Control with Edge Computer Vision using YOLO V5 and Microshift" +image: /path/to/hero-image.jpg # Path to a hero image (optional) +--- + +# Run tekton pipeline +![20240106134547](https://i.imgur.com/ssgQacx.png) + +## Prerequisites +* Configure Secret for quay regisgtry -> use this link as reference [configure-pipeline-secret.sh](https://raw.githubusercontent.com/tosin2013/redhat-edge-ai-industrial-demo-infra/main/hack/configure-pipeline-secret.sh) +* If you ran the dev-env setup, you can call the script below to configure the secret +{% highlight bash %} + ./hack/configure-pipeline-secret.sh +{% endhighlight %} + + +## Run pipeline against quay.io +{% highlight bash %} +curl -OL https://raw.githubusercontent.com/tosin2013/redhat-edge-ai-industrial-demo-infra/main/hack/run_pipeline.sh +chmod +x run_pipeline.sh + +USERNAME=takinosh +./run_pipeline.sh quay.io/${USERNAME}/redhat-edge-ai-industrial-demo +{% endhighlight %} + +## Run pipeline against self hosted quay on openshift +{% highlight bash %} +curl -OL https://raw.githubusercontent.com/tosin2013/redhat-edge-ai-industrial-demo-infra/main/hack/run_pipeline.sh +chmod +x run_pipeline.sh + +./run_pipeline.sh $(oc get route -n quay | grep registry-quay | awk '{print $2}' | head -1)/admin/redhat-edge-ai-industrial-demo +{% endhighlight %} + +## Source code +**Tekton Pipelines** +* Tekton Pipeline for [redhat-edge-ai-industrial-demo](https://github.com/tosin2013/redhat-edge-ai-industrial-demo-infra/tree/main/components/applications/redhat-edge-ai-industrial-demo/overlays/rhde-dev-env) + +**Via URL** + +*make sure openshift pipelines is installed before running* + +{% highlight bash %} +oc apply -k https://github.com/tosin2013/redhat-edge-ai-industrial-demo-infra/components/applications/redhat-edge-ai-industrial-demo/overlays/rhde-dev-env +{% endhighlight %} \ No newline at end of file diff --git a/_deployments/developer_deployment.markdown b/_deployments/developer_deployment.markdown index 81d76c4..dfb89e5 100644 --- a/_deployments/developer_deployment.markdown +++ b/_deployments/developer_deployment.markdown @@ -80,4 +80,8 @@ $ oc create -k clusters/overlays/aws ## Ensure the ArgoCD application is in sync ![20240213165739](https://i.imgur.com/0vdu0mx.jpg) +## Configure Enviornment +1. [Run tekton pipeline](/run_tekton_pipeline) - The Tekton pipeline is used to build the container image for the application. +2. [Configure rhods](/configure_rhods) - The Red Hat OpenShift Data Science environment is used to train the AI model. + [Back to Homepage](/) \ No newline at end of file diff --git a/_deployments/run_tekton_pipeline.markdown b/_deployments/run_tekton_pipeline.markdown index 0670b3a..32229a8 100644 --- a/_deployments/run_tekton_pipeline.markdown +++ b/_deployments/run_tekton_pipeline.markdown @@ -10,14 +10,17 @@ image: /path/to/hero-image.jpg # Path to a hero image (optional) ![20240106134547](https://i.imgur.com/ssgQacx.png) ## Prerequisites +* Create a `redhat-edge-ai-industrial-demo` repository on quay.io or self hosted quay on openshift * Configure Secret for quay regisgtry -> use this link as reference [configure-pipeline-secret.sh](https://raw.githubusercontent.com/tosin2013/redhat-edge-ai-industrial-demo-infra/main/hack/configure-pipeline-secret.sh) * If you ran the dev-env setup, you can call the script below to configure the secret {% highlight bash %} ./hack/configure-pipeline-secret.sh -{% endhighlight %} +{% endhighlight %}qua ## Run pipeline against quay.io +* `tkn` cli is required to run the pipeline. + {% highlight bash %} curl -OL https://raw.githubusercontent.com/tosin2013/redhat-edge-ai-industrial-demo-infra/main/hack/run_pipeline.sh chmod +x run_pipeline.sh