Installation
odo can be used as a CLI tool and as an IDE plugin; it can be run on Linux, Windows and Mac systems.
#
CLI Binary installationodo supports amd64 architecture for Linux, Mac and Windows. Additionally, it also supports amd64, arm64, s390x, and ppc64le architectures for Linux.
See the release page for more information.
#
Installing odo on Linux/MacOS="$(uname | tr '[:upper:]' '[:lower:]')"ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')"curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest/odo-$OS-$ARCH -o odosudo install odo /usr/local/bin/
#
Installing odo on Windows- Download the odo-windows-amd64.exe file.
- Rename the downloaded file to odo.exe and move it to a folder of choice, for example
C:\odo
. - Add the location of odo.exe to
%PATH%
variable (refer to the steps below).
#
Setting the PATH variable in Windows 10- Click Search and type
env
orenvironment
. - Select Edit environment variables for your account.
- Select Path from the Variable section and click Edit.
- Click New, add the location where you copied the odo binary (e.g.
C:\odo
in Step 2 of Installation into the field or click Browse and select the directory, and click OK.
#
Setting the PATH variable in Windows 7/8- Click Start and in the Search box types
Advanced System Settings
. - Select Advanced systems settings and click the Environment Variables button at the bottom.
- Select the Path variable from the System variables section and click Edit.
- Scroll to the end of the Variable value and add
;
followed by the location where you copied the odo binary (e.g.C:\odo
in Step 2 of Installation and click OK. - Click OK to close the Environment Variables dialog.
- Click OK to close the System Properties dialog.
#
Installing odo in Visual Studio Code (VSCode)The OpenShift VSCode extension uses both odo and oc binary to interact with Kubernetes or OpenShift cluster.
- Open VS Code.
- Launch VS Code Quick Open (Ctrl+P)
- Paste the following command:
ext install redhat.vscode-openshift-connector
#
Installing from source- Clone the repository and cd into it.
git clone https://github.com/openshift/odo.gitcd odo
- Install tools used by the build and test system.
make goget-tools
- Build the executable from the sources in
cmd/odo
.make bin
- Check the build version to verify that it was built properly.
./odo version
- Install the executable in the system's GOPATH.
make install
- Check the binary version to verify that it was installed properly; verify that it is same as the build version.
odo version