GithubHelp home page GithubHelp logo

s2i-aspnet's Introduction

s2i-aspnet

Travis CI Build Status

Red Hat OpenShift Source-to-Image template for ASP.NET Core applications

This repository contains the source for creating a source-to-image (https://github.com/openshift/source-to-image) builder image, which be used to create reproducible Docker images from your ASP.NET Core project's source code.

For more information about using Source to Image with OpenShift, please see the official OpenShift Documentation (https://docs.openshift.com/enterprise/3.1/creating_images/s2i.html) .

Building the Builder Image

This S2I builder can be built within OpenShift or locally using docker. The following will describe the steps necessary to produce a new builder image called s2i-aspnet that can be used to produce S2I builds of .NET Core applications.

OpenShift

After logging into an OpenShift environment and creating a new project, start a new build of the S2I builder

oc new-build https://github.com/openshift-s2i/s2i-aspnet

Or, to push the contents of the repository that has been cloned to the local machine, run the following command:

oc new-build openshift/base-centos7 --name=s2i-aspnet --binary=true
oc start-build s2i-aspnet --from-dir=.

Use oc get builds to track the status of the build. Once complete, the builder image can be used to produce new images containing ASP.NET Core applications.

Docker

Execute the following steps to build a new docker image containing the S2I builder:

git clone https://github.com/openshift-s2i/s2i-aspnet.git
cd s2i-aspnet
docker build -t s2i-aspnet .

The resulting image can be used by the S2I to combine the application source into a new image or pushed to OpenShift's internal registry for use within the platform.

Versions

ASP.NET Core versions currently supported are:

  • ASP.NET Core 1.0.0

We are using the official docker image from Microsoft as the base (https://github.com/dotnet/dotnet-docker)

Demo Application

A sample ASP.NET Core application is available to demonstrate the the functionality of this S2I builder. Full instructions can be found at the following location:

https://github.com/openshift-s2i/s2i-aspnet-example

s2i-aspnet's People

Contributors

alberttwong avatar sabre1041 avatar bparees avatar jawnsy avatar jperville avatar dinhxuanvu avatar eformat 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.