Add .NET Core Templates to Minishift/OpenShift

If you have followed the guide to install minishift locally you may have noticed that in the last version as today (v3.9.31) the templates for .NET Core are not present.



You can add them easily to your minishift cluster by logging into it as admin
oc login -u admin -p foo

and then by running the following commands
oc create --namespace openshift -f https://raw.githubusercontent.com/redhat-developer/s2i-dotnetcore/master/templates/dotnet-example.json

oc create --namespace openshift -f https://raw.githubusercontent.com/redhat-developer/s2i-dotnetcore/master/templates/dotnet-runtime-example.json

oc create --namespace openshift -f https://raw.githubusercontent.com/redhat-developer/s2i-dotnetcore/master/templates/dotnet-pgsql-persistent.json

Additionally you could apply the following json file to add a .NET Core application to an OpenShift project

Comments