From 15a9bac40ba12bef34e2dba1d902460466ae1dbe Mon Sep 17 00:00:00 2001 From: Yana Hontyk Date: Wed, 11 Sep 2019 15:30:13 +0200 Subject: [PATCH 1/2] added-crc-procedure --- ...deploying-an-application-to-openshift.adoc | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/modules/ROOT/pages/proc_deploying-an-application-to-openshift.adoc b/modules/ROOT/pages/proc_deploying-an-application-to-openshift.adoc index 3dd31cef..6264c95b 100644 --- a/modules/ROOT/pages/proc_deploying-an-application-to-openshift.adoc +++ b/modules/ROOT/pages/proc_deploying-an-application-to-openshift.adoc @@ -10,10 +10,44 @@ * You have installed link:proc_installing-pipelines-operator.html[OpenShift Pipelines] using the OpenShift Pipeline Operator listed in the OpenShift OperatorHub. Once installed, it is applicable to the entire cluster. * You have installed the link:https://github.com/tektoncd/cli[Tekton CLI] +* You have installed the link:https://cloud.redhat.com/openshift/install/crc/installer-provisioned?intcmp=7013a000002CtetAAC[CodeReady Containers (CRC)] - a recommended solution for quick deployment of OpenShift clusters. +// Go to link:[CRC official documentation] to learn more. [discrete] === Procedure +. Create a local CRC virtual machine: + +** For native hypervisors: ++ +---- +$ crc start +---- + +** For VirtualBox, a bundle file downloaded separately and the `--vm-driver virtualbox` and `--bundle` flags are required: ++ +---- +$ crc start --vm-driver virtualbox --bundle _path_to_system_bundle_ +---- ++ +NOTE: `crc start` output contains user login and password needed for logging into the cluster. + +. Add the cached `oc` binary to your PATH: + +.. Run the crc oc-env command to print the command needed to add the cached oc binary to your PATH: ++ +---- +$ crc oc-env +---- + +.. Run the printed command. + +. Log into the OpenShift cluster with the provided login and password: ++ +---- +$ oc login -u -p https://api.crc.testing:6443 +---- + . Create a project for the sample application: + ---- From f22cf74821d132cfe6796ba244dbed9170fe8ed6 Mon Sep 17 00:00:00 2001 From: Yana Hontyk Date: Fri, 13 Sep 2019 17:32:36 +0200 Subject: [PATCH 2/2] Removed mention of VirtualBox --- ...proc_deploying-an-application-to-openshift.adoc | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/modules/ROOT/pages/proc_deploying-an-application-to-openshift.adoc b/modules/ROOT/pages/proc_deploying-an-application-to-openshift.adoc index 6264c95b..751ced85 100644 --- a/modules/ROOT/pages/proc_deploying-an-application-to-openshift.adoc +++ b/modules/ROOT/pages/proc_deploying-an-application-to-openshift.adoc @@ -11,27 +11,21 @@ * You have installed link:proc_installing-pipelines-operator.html[OpenShift Pipelines] using the OpenShift Pipeline Operator listed in the OpenShift OperatorHub. Once installed, it is applicable to the entire cluster. * You have installed the link:https://github.com/tektoncd/cli[Tekton CLI] * You have installed the link:https://cloud.redhat.com/openshift/install/crc/installer-provisioned?intcmp=7013a000002CtetAAC[CodeReady Containers (CRC)] - a recommended solution for quick deployment of OpenShift clusters. -// Go to link:[CRC official documentation] to learn more. + [discrete] === Procedure . Create a local CRC virtual machine: - -** For native hypervisors: + ---- $ crc start ---- - -** For VirtualBox, a bundle file downloaded separately and the `--vm-driver virtualbox` and `--bundle` flags are required: + ----- -$ crc start --vm-driver virtualbox --bundle _path_to_system_bundle_ ----- +NOTE: If you use a hosted hypervisor, see the link:https://code-ready.github.io/crc/#starting-the-virtual-machine_gsg[CRC documentation]. ++ +`crc start` output contains user login and password needed for logging into the cluster. + -NOTE: `crc start` output contains user login and password needed for logging into the cluster. - . Add the cached `oc` binary to your PATH: .. Run the crc oc-env command to print the command needed to add the cached oc binary to your PATH: