Skip to content

Instantly share code, notes, and snippets.

@cvicens
Last active August 8, 2022 19:39
Show Gist options
  • Save cvicens/3caf236d984f8f5074c961729d57a4a0 to your computer and use it in GitHub Desktop.
Save cvicens/3caf236d984f8f5074c961729d57a4a0 to your computer and use it in GitHub Desktop.
# 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