Giter Club home page Giter Club logo

dotnetonopenshift3's Introduction

Run .NET Application on OpenShift 3

This repository contains guide line to host and run .NET based applications on OpenShift 3 Cloud. Below instructions guide you to deploy Click2Cloud's .NET Templates for all users, if you have access to OpenShift Master node. Also, at project level, if you have limited access.

Clone DotNetOnOpenShift3 repository
git clone https://github.com/Click2Cloud/DotNetOnOpenShift3.git
cd DotNetOnOpenShift3

Deploy Templates for all users

If you have access to OpenShift 3 Master node and can deploy templates at openshift project level, follow below steps.

Install .NET Templates

Login to OpenShift 3 Master node as a root user and run below commands.

To Install ASP.NET 4.5 Templates
oc create -f aspnet-4.5-template.json -n openshift
oc create -f aspnet-4.5-externaldb-template.json -n openshift
oc create -f aspnet-4.5-mongodb-template.json -n openshift
oc create -f aspnet-4.5-mysql-template.json -n openshift
oc create -f aspnet-4.5-postgresql-template.json -n openshift
To Install ASP.NET 5.0 Templates
oc create -f aspnet-core-1.0-template.json -n openshift
oc create -f aspnet-core-1.0-externaldb-template.json -n openshift
oc create -f aspnet-core-1.0-mongodb-template.json -n openshift
oc create -f aspnet-core-1.0-mysql-template.json -n openshift
oc create -f aspnet-core-1.0-postgresql-template.json -n openshift

After installing .NET Templates, verify it from OpenShift Web Console. You should get following result after searching asp in Select Image or Template page.

Search Result

Deploy Templates at project level

If you do not have access to OpenShift 3 Master node, follow instruction below to deploy Templates at project level.

Install .NET Templates

Login to OpenShift 3 using CLI and select the project where you want to install .NET Templates.

Select project
oc project <projectname>
To Install ASP.NET 4.5 Templates
oc create -f aspnet-4.5-template.json
oc create -f aspnet-4.5-externaldb-template.json
oc create -f aspnet-4.5-mongodb-template.json
oc create -f aspnet-4.5-mysql-template.json
oc create -f aspnet-4.5-postgresql-template.json
To Install ASP.NET 5.0 Templates
oc create -f aspnet-core-1.0-template.json
oc create -f aspnet-core-1.0-externaldb-template.json
oc create -f aspnet-core-1.0-mongodb-template.json
oc create -f aspnet-core-1.0-mysql-template.json
oc create -f aspnet-core-1.0-postgresql-template.json

Compatible Test run on below environment for templates

Template OpenShift Enterprise OpenShift Origin
aspnet-4.5-template Yes Yes
aspnet-4.5-externaldb-template Yes Yes
aspnet-4.5-mongodb-template Yes Yes
aspnet-4.5-mysql-template Yes Yes
aspnet-4.5-postgresql-template Yes Yes
aspnet-core-1.0-template Yes Yes
aspnet-core-1.0-externaldb-template Yes Yes
aspnet-core-1.0-mongodb-template Yes Yes
aspnet-core-1.0-mysql-template Yes Yes
aspnet-core-1.0-postgresql-template Yes Yes

NOTE: This version is not tested on OpenShift Online Environment.

dotnetonopenshift3's People

Contributors

shrutikamendhe avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.