Odo - OpenShift do
Odo (OpenShift do...) is a CLI tool that provides developers with fast and automated source code deployments. Odo supplements continuous development by using the power of OpenShift's Source-to-Image with the stableness of Kubernetes. Developers can immediately start coding while Odo builds, pushes and deploys the application in the background.
- Multiple languages: Odo supports Node.JS, Ruby, .Net Core, Perl, PHP and Python.
- Speed: Building your source code immediately after saving and deployed to your cluster.
- Reproducible: Allows for easy reproducibility by using tightly versioned Docker containers for your source code environment.
- Deployability: Easily deploy a new version, or have Odo automatically build and re-deploy your code on each change.
- Serverless: No requirement for running a server to automate tasks. Odo talks to OpenShift directly through an API.
- Instant feedback: Deploy while making edits to files, showing direct and instant feedback.
Documentation can be found below:
The quickest way to install Odo is through our bash script, which will automatically detect your operating system and install
curl -L https://github.com/redhat-developer/odo/raw/master/scripts/install.sh | bash
sudo curl -L "https://github.com/redhat-developer/odo/releases/download/v0.0.5/odo-darwin-amd64.gz" | gzip -d > /usr/local/bin/odo; chmod +x /usr/local/bin/odo
sudo curl -L "https://github.com/redhat-developer/odo/releases/download/v0.0.5/odo-linux-amd64.gz" | gzip -d > /usr/local/bin/odo; chmod +x /usr/local/bin/odo
- Download the
odo-windows-amd64.exe.gzfile from the GitHub releases page.
- Extract the file
- Add the location of extracted binary to your PATH environment variable by following this Wiki page.
For a list of other methods such as installing the latest mastery binary, or specific OS installations, visit our installation page.
Getting started with Odo
Wanted to get started? Follow the instructions below or our Katacoda tutorial:
minishiftor an OpenShift environment 3.7.0+, the best way to deploy a development environment is using Minishift.
ocIf you do not have it, there's an excellent guide on the OpenShift site on how to install the latest client.
Deploying a Node.js application using Odo
# Download the latest release! $ curl -L https://github.com/redhat-developer/odo/raw/master/scripts/install.sh | bash # Start your development environment $ minishift start # Download the Node.JS example directory $ git clone https://github.com/openshift/nodejs-ex $ cd nodejs-ex # Create new nodejs component $ odo create nodejs # Now let's deploy your application! $ odo push # Last, we'll create a way to access the application $ odo url create nodejs - nodejs-myproject.192.168.42.147.nip.io # Test it / visit the URL $ curl nodejs-myproject.192.168.42.147.nip.io
- Application: Is, well, your application! It consists of multiple microservices or components, that work individually to build the entire application.
- Component: can be thought of as a microservice. Multiple components will make up an application. A component will have different attributes like storage, etc. Multiple component types are currently supported, like nodejs, perl, php, python, ruby, etc.
odo --verbose : OpenShift CLI for Developers app --short : Perform application operations create : create an application delete --force : delete the given application describe : describe the given application get --short : get the active application list : lists all the applications set : Set application as active. catalog : Catalog related operations list : List all available component types. search : Search component type in catalog completion : Output shell completion code component --short : Components of application. get --short : Get currently active component set : Set active component. create --binary --git --local : Create new component delete --force : Delete existing component describe : Describe the given component link --component : Link target component to source component list : List all components in the current application project --short : Perform project operations create : create a new project get --short : get the active project list : list all the projects set --short : set the current active project push --local : Push source code to component storage --component : Perform storage operations create --path --size : create storage and mount to component delete : delete storage from component list : list storage attached to a component update --binary --git --local : Change the source of a component url : Expose component to the outside world create : Create a URL for a component delete : Delete a URL list --application --component : List URLs version : Print the version of odo watch : Watch for changes, update component on change
There is no documentation for this package.