HOWTO
- OCP local CRC https://crc.dev/docs/introducing/
- odo install https://odo.dev/docs/overview/installation/
See also
Prerequisites
-
You have installed
odo
. For more information, see Installingodo
in theodo
documentation. -
CRC is configured to use the OpenShift preset. See: Changing the selected preset.
-
The CRC instance is running. See: Starting the instance.
Installing odo
dave@fedora:~/Downloads$ curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.16.1/odo-linux-amd64 -o odo -o odo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 90.1M 100 90.1M 0 0 4255k 0 0:00:21 0:00:21 --:--:-- 4785k
dave@fedora:~/Downloads$ curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.16.1/odo-linux-amd64.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 64 100 64 0 0 181 0 --:--:-- --:--:-- --:--:-- 181
bash: shasum: command not found...
Install package 'perl-Digest-SHA' to provide command 'shasum'? [N/y] y
* Waiting in queue...
* Loading list of packages....
The following packages have to be installed:
perl-Digest-SHA-1:6.04-513.fc42.x86_64 Perl extension for SHA-1/224/256/384/512
Proceed with changes? [N/y] y
* Waiting in queue...
* Waiting for authentication...
* Waiting in queue...
* Downloading packages...
* Requesting data...
* Testing changes...
* Installing packages...
shasum: standard input: no properly formatted SHA checksum lines found
dave@fedora:~/Downloads$ curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.16.1/odo-linux-amd64.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 64 100 64 0 0 385 0 --:--:-- --:--:-- --:--:-- 385
odo: OK
dave@fedora:~/Downloads$ sudo install -o root -g root -m 0755 odo /usr/local/bin/odo
[sudo] password for dave:
dave@fedora:~/Downloads$ odo login -u developer -p developer
Connecting to the OpenShift cluster
Login successful.
You don't have any projects. You can try to create a new project, by running
odo create project <projectname>
dave@fedora:~/Downloads$ odo create project sample-app
✓ Creating the project "sample-app" [80ms]
✓ Project "sample-app" is ready for use
✓ New project created and now using project: sample-app
dave@fedora:~/Downloads$ mkdir sample-app
dave@fedora:~/Downloads$ cd sample-app
dave@fedora:~/Downloads/sample-app$ git clone https://github.com/openshift/nodejs-ex
Cloning into 'nodejs-ex'...
remote: Enumerating objects: 836, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 836 (delta 0), reused 0 (delta 0), pack-reused 835 (from 2)
Receiving objects: 100% (836/836), 773.00 KiB | 908.00 KiB/s, done.
Resolving deltas: 100% (321/321), done.
dave@fedora:~/Downloads/sample-app$ cd nodejs-ex
No comments:
Post a Comment