Skip to content

Commit 71ce8eb

Browse files
authored
Merge pull request openshift#3017 from ahardin-rh/dot-net
New Using .NET Core with OCP topic
2 parents 1c9ef27 + fcf820d commit 71ce8eb

File tree

3 files changed

+108
-9
lines changed

3 files changed

+108
-9
lines changed

_topic_map.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -681,19 +681,21 @@ Topics:
681681
File: index
682682
- Name: Customizing S2I images
683683
File: customizing_s2i_images
684+
- Name: Java
685+
File: java
686+
Distros: openshift-origin,openshift-online
687+
- Name: .NET Core
688+
File: dot_net_core
684689
- Name: Node.js
685690
File: nodejs
686-
- Name: Ruby
687-
File: ruby
688691
- Name: Perl
689692
File: perl
690693
- Name: PHP
691694
File: php
692695
- Name: Python
693696
File: python
694-
- Name: Java
695-
File: java
696-
Distros: openshift-origin,openshift-online
697+
- Name: Ruby
698+
File: ruby
697699
- Name: Database Images
698700
Dir: db_images
699701
Topics:

dev_guide/new_app.adoc

+8-4
Original file line numberDiff line numberDiff line change
@@ -107,23 +107,27 @@ builder to use by the presence of certain files in the root of the repository:
107107

108108
|Language |Files
109109

110-
a|`ruby`
111-
a|*_Rakefile_*, *_Gemfile_*, *_config.ru_*
110+
a|`dotnet`
111+
a|*_project.json_*
112112

113113
a|`jee`
114114
a|*_pom.xml_*
115115

116116
a|`nodejs`
117117
a|*_app.json_*, *_package.json_*
118118

119+
a|`perl`
120+
a|*_index.pl_*, *_cpanfile_*
121+
119122
a|`php`
120123
a|*_index.php_*, *_composer.json_*
121124

122125
a|`python`
123126
a|*_requirements.txt_*, *_setup.py_*
124127

125-
a|`perl`
126-
a|*_index.pl_*, *_cpanfile_*
128+
a|`ruby`
129+
a|*_Rakefile_*, *_Gemfile_*, *_config.ru_*
130+
127131
|===
128132

129133
After a language is detected, `new-app` searches the {product-title} server for
+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
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

Comments
 (0)