|
| 1 | +[[using-images-using-dot-net-core]] |
| 2 | += .NET Core |
| 3 | +{product-author} |
| 4 | +{product-version} |
| 5 | +:data-uri: |
| 6 | +:icons: |
| 7 | +:experimental: |
| 8 | +:toc: macro |
| 9 | +:toc-title: |
| 10 | + |
| 11 | +toc::[] |
| 12 | + |
| 13 | +[[benefits-of-using-dot-net-core]] |
| 14 | +== Benefits of Using .NET Core |
| 15 | + |
| 16 | +link:http://developers.redhat.com/dotnet/[.NET Core] is a general purpose |
| 17 | +development platform featuring automatic memory management and modern |
| 18 | +programming languages. It allows users to build high quality applications |
| 19 | +efficiently. .NET Core is available on Red Hat Enterprise Linux (RHEL 7) and |
| 20 | +{product-title} via certified containers. .NET Core offers: |
| 21 | + |
| 22 | +* The ability to follow a microservices-based approach, where some components are |
| 23 | +built with .NET and others with Java, but all can run on a common, supported |
| 24 | +platform in Red Hat Enterprise Linux and {product-title}. |
| 25 | +* The capacity to more easily develop new .NET Core workloads on Windows; |
| 26 | +customers are able to deploy and run on either Red Hat Enterprise Linux or |
| 27 | +Windows Server. |
| 28 | +* A heterogeneous data center, where the underlying infrastructure is capable of |
| 29 | +running .NET applications without having to rely solely on Windows Server. |
| 30 | +* Access to many of the popular development frameworks such as .NET, Java, Ruby, |
| 31 | +and Python from within {product-title}. |
| 32 | + |
| 33 | +[[dot-net-core-supported-versions]] |
| 34 | +== Supported Versions |
| 35 | + |
| 36 | +* .NET Core version 1.0 |
| 37 | +** Supported on Red Hat Enterprise Linux (RHEL) 7 {product-title} versions 3.3 and later |
| 38 | + |
| 39 | +ifdef::openshift-enterprise[] |
| 40 | +[[dot-net-core-installing-images]] |
| 41 | +== Images |
| 42 | + |
| 43 | +Image stream definitions for the .NET Core on RHEL S2I image are now added |
| 44 | +during {product-title} installations. |
| 45 | +endif::openshift-enterprise[] |
| 46 | + |
| 47 | +The RHEL 7 images are available through Red Hat's subscription registry using: |
| 48 | + |
| 49 | +---- |
| 50 | +$ docker pull registry.access.redhat.com/dotnet/dotnetcore-10-rhel7 |
| 51 | +---- |
| 52 | + |
| 53 | +To use these images, you can either access them directly from these |
| 54 | +xref:../../architecture/infrastructure_components/image_registry.adoc#architecture-infrastructure-components-image-registry[image |
| 55 | +registries], or push them into your |
| 56 | +xref:../../architecture/infrastructure_components/image_registry.adoc#integrated-openshift-registry[{product-title} |
| 57 | +Docker registry]. Additionally, you can create an |
| 58 | +xref:../../architecture/core_concepts/builds_and_image_streams.adoc#image-streams[image |
| 59 | +stream] that points to the image, either in your Docker registry or at the |
| 60 | +external location. Your {product-title} resources can then reference the |
| 61 | +link:https://github.com/redhat-developer/s2i-dotnetcore/blob/master/dotnet_imagestreams.json[image stream definition]. |
| 62 | + |
| 63 | +[[dot-net-core-configuration]] |
| 64 | +== Configuration |
| 65 | + |
| 66 | +The .NET Core image currently does not support any environment variables. No |
| 67 | +configuration is necessary. |
| 68 | + |
| 69 | +ifdef::openshift-enterprise[] |
| 70 | +[[dot-net-quickly-deploy-applications]] |
| 71 | +== Quickly Deploying Applications from .NET Core Source |
| 72 | + |
| 73 | +[IMPORTANT] |
| 74 | +==== |
| 75 | +The |
| 76 | +link:https://github.com/redhat-developer/s2i-dotnetcore/blob/master/dotnet_imagestreams.json[.NET |
| 77 | +image stream] must first be installed. If you ran a standard installation, the |
| 78 | +image stream will be present. |
| 79 | +==== |
| 80 | + |
| 81 | +An image can be used to build an application by running `oc new-app` against a |
| 82 | +sample repository: |
| 83 | + |
| 84 | +---- |
| 85 | +$ oc new-app https://github.com/redhat-developer/s2i-dotnetcore --context-dir=1.0/test/asp-net-hello-world |
| 86 | +---- |
| 87 | + |
| 88 | +ifdef::openshift-enterprise[] |
| 89 | +[NOTE] |
| 90 | +==== |
| 91 | +The `oc new-app` command can detect .NET Core source starting in {product-title} 3.3. |
| 92 | +==== |
| 93 | +endif::openshift-enterprise[] |
0 commit comments