Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Get odo for linux
$ curl -OL https://mirror.openshift.com/pub/openshift-v4/clients/odo/v2.0.0/odo-linux-amd64 && mv odo-linux-amd64 odo && chmod u+x odo
$ export PATH=$PATH:$(pwd)
$ odo version
# Use git to check out the .NET Core application
$ git clone https://github.com/redhat-developer/s2i-dotnetcore-ex
$ cd s2i-dotnetcore-ex/app
$ git checkout dotnetcore-3.1
# Create a new OpenShift project
$ export OCP_USER=$(oc whoami)
$ odo project create ${OCP_USER}-dotnet-demo
# Add a component for the .NET Core application
$ odo create dotnet:3.1
# Make the .NET Core application accessible externally
$ odo url create
# Deploy the application
$ odo push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment