Skip to content

Instantly share code, notes, and snippets.

Forked from cvicens/odo-dotnet-demo.txt
Created August 8, 2022 19:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
# Get odo for linux
$ curl -OL && 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
$ 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