Run ASP.NET Core on OpenShift

Today I’ll show you how to Run ASP.NET Core on OpenShift.

First be aware of the following prerequisites:

  • You’ll need a working Docker installation. If you are using Windows 10 you can get Docker for Windows here.
  • Be sure to Disable TLS for for your Docker installation
  • Be sure to set as an Insecure Registry in your Docker installation
  • Be sure to set as a Registry Mirror in your Docker installation
  • You’ll need download the oc Client Tools

Note: If you want to learn about OpenShift and what can you do with it, I recommend the free book: Openshift for Developers.

Now let’s start:

1. Create a folder for your new project
2. Create the project
3. Publish your application
4. Create a Dockerfile
5. Create you OpenShift Cluster
6. Create an app in OpenShift
7. Build your OpenShift image
8. Create a route so you can access the application
9. Check the status and browse to you application

You can get the code here.

Hope it helps!

2 thoughts on “Run ASP.NET Core on OpenShift

Leave a Reply

Your email address will not be published. Required fields are marked *