Git Product home page Git Product logo

s2i-dotnetcore-ex's Introduction

.NET Core Sample App for OpenShift

This repository contains a simple MVC .NET Core application that can be deployed on OpenShift.

The example is meant to be built and run with the s2i-dotnetcore builder images. The branches of this repository correspond to versions of the s2i-dotnetcore images.

Deploying the application

You can deploy the application using the OpenShift client (oc) with the following commands:

# Create a new OpenShift project
$ oc new-project mydemo

# Add the .NET Core application
$ oc new-app dotnet:8.0-ubi8~https://github.com/redhat-developer/s2i-dotnetcore-ex#dotnet-8.0 --context-dir app

# Make the .NET Core application accessible externally and show the url
$ oc expose service s2i-dotnetcore-ex
$ oc get route s2i-dotnetcore-ex

Copyright 2023 by Red Hat, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this package except in compliance with the License (see the LICENSE file included in this distribution). You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

s2i-dotnetcore-ex's People

Contributors

bparees avatar dinhxuanvu avatar jawnsy avatar jerboaa avatar jperville avatar jsvgoncalves avatar sabre1041 avatar tmds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

s2i-dotnetcore-ex's Issues

build error on OpenShift 4.5 with .net template

when I build this sample I get following error
STEP 8: RUN /usr/libexec/s2i/assemble
---> Installing application source...
error: DOTNET_STARTUP_PROJECT has no project file
You can specify the startup project by adding an '.s2i/environment' file to the source repository.
The source repository contains the following projects:

  • app/app.csproj
    Update the '.s2i/environment' file to specify the project you want to publish, for example DOTNET_STARTUP_PROJECT=app/app.csproj.
    subprocess exited with status 1
    subprocess exited with status 1
    error: build error: error building at STEP "RUN /usr/libexec/s2i/assemble": exit status 1

oc new-app dotnet:3.1~https://github.com/redhat-developer/s2i-dotnetcore-ex#dotnetcore-3.1 --context-dir app
works!

reason:
context-dir is set! not explicitly mentioned in ReadMe...

Why do all the examples use app.csproj when mvc generates dotnet.csproj?

So I'm using odo with the examples.

We take this example (s2i-dotnetcore-ex) for our usage with Devfile.

I'm curious why the files in this example are named app.csproj when dotnet generates dotnet.csproj ?

Shouldn't the default be dotnet.csproj so it aligns with how dotnet generates examples?

Remove old template file

We've created a new template in the s2i-dotnetcore repository which instantiates this sample app. It's more generic than what the old template was. The old one should get removed at some point.

Microsoft.AspNetCore.Server.Kestrel.Networking.UvException: Error -97 EAFNOSUPPORT address family not supported

Fisrt, thank you very much for this example.

My pod kept crashing when trying to run this application giving me the subject Exception error. I resolved this in our enterprise Origins instance, after discovering people having similar issues that seems related to port binding in Kestrel. aspnet/KestrelHttpServer#766

I'm not suggesting what the best fix for everyone is, but what worked for me was editing my host var in Program.cs and adding this right before .build(); .UseUrls("http://0.0.0.0:5000")

S2I - Project with multiple layer

Hello, Guys!

How to use s2i builder image when the project .net core have a project distributed in layers?

For example

  • API.csproj - API Rest for consume
    • Dependence with:
      - business.csproj

Error: /tmp/src/app/project.json(0,0): Error: Microsoft.Dnx.Runtime.FileFormatException: unknown keyword platform

I'm fooling around with this example coming from http://developers.redhat.com/blog/2016/06/16/simplifying-asp-net-applications-on-openshift-with-the-asp-net-core-s2i-builder/

and I'm running into:

warning: OpenShift server version "v1.3.0-alpha.2-250-g61eba05" differs from this image "v1.3.0-alpha.2"
The value of ALLOWED_UIDS is [1-]
The value of DROP_CAPS is [KILL,MKNOD,SETGID,SETUID,SYS_CHROOT]
Image "sabre1041/s2i-aspnet@sha256:5898de00aa698bd02f687e9be012c7a0273b8e793ac5b62455f30d6bc151fd54" not available locally, pulling ...
Creating a new S2I builder with build config: "Builder Name:\t\t\tASP.NET 5.0\nBuilder Image:\t\t\tsabre1041/s2i-aspnet@sha256:5898de00aa698bd02f687e9be012c7a0273b8e793ac5b62455f30d6bc151fd54\nSource:\t\t\t\tfile:///tmp/s2i-build165807239/upload/src#master\nOutput Image Tag:\t\tose-dotnet/aspnet-app-1:63498f7f\nEnvironment:\t\t\tOPENSHIFT_BUILD_NAME=aspnet-app-1,OPENSHIFT_BUILD_NAMESPACE=ose-dotnet,OPENSHIFT_BUILD_SOURCE=https://github.com/openshift-s2i/s2i-aspnet-example,OPENSHIFT_BUILD_REFERENCE=master\nIncremental Build:\t\tdisabled\nRemove Old Build:\t\tdisabled\nBuilder Pull Policy:\t\tif-not-present\nPrevious Image Pull Policy:\talways\nQuiet:\t\t\t\tdisabled\nLayered Build:\t\t\tdisabled\nWorkdir:\t\t\t/tmp/s2i-build165807239\nDocker NetworkMode:\t\tcontainer:7fbf60c3153ea451b551751c7dc8ce14c5050b0ff32186353eb130b073883f69\nDocker Endpoint:\t\tunix:///var/run/docker.sock\n"
Downloading "https://github.com/openshift-s2i/s2i-aspnet-example" ...
Cloning source from https://github.com/openshift-s2i/s2i-aspnet-example
I0627 23:56:57.922015       1 install.go:251] Using "assemble" installed from "image:///usr/libexec/s2i/assemble"
I0627 23:56:57.922735       1 install.go:251] Using "run" installed from "image:///usr/libexec/s2i/run"
I0627 23:56:57.922769       1 install.go:251] Using "save-artifacts" installed from "image:///usr/libexec/s2i/save-artifacts"
---> Building and installing application from source...
total 4
0 drwxrwxrwt.  3 root   16 Jun 27 23:56 .
4 drwxr-xr-x. 21 root 4096 Jun 27 23:56 ..
0 drwxr-xr-x.  5 root  155 Jun 27 23:56 src
total 40
0 drwxr-xr-x. 5 root   155 Jun 27 23:56 .
0 drwxrwxrwt. 3 root    16 Jun 27 23:56 ..
4 -rw-r--r--. 1 root   328 Jun 27 23:56 .editorconfig
0 drwxr-xr-x. 7 root   137 Jun 27 23:56 .git
4 -rw-r--r--. 1 root   102 Jun 27 23:56 .gitattributes
4 -rw-r--r--. 1 root    83 Jun 27 23:56 .mailmap
4 -rw-r--r--. 1 root  2568 Jun 27 23:56 Contributing.adoc
12 -rw-r--r--. 1 root 11357 Jun 27 23:56 LICENSE
8 -rw-r--r--. 1 root  5362 Jun 27 23:56 README.adoc
4 drwxr-xr-x. 9 root  4096 Jun 27 23:56 app
0 drwxr-xr-x. 2 root    37 Jun 27 23:56 templates
Microsoft .NET Development Utility Mono-x64-1.0.0-rc1-16231

GET https://api.nuget.org/v3/index.json
OK https://api.nuget.org/v3/index.json 313ms
Restoring packages for /tmp/src/app/project.json
----------
/tmp/src/app/project.json(0,0): Error: Microsoft.Dnx.Runtime.FileFormatException: unknown keyword platform ---> System.InvalidOperationException: unknown keyword platform
at Microsoft.Dnx.Runtime.LibraryDependencyType.Parse (System.String keyword) [0x00000] in <filename unknown>:0
at Microsoft.Dnx.Runtime.ProjectReader.PopulateDependencies (System.String projectPath, IList`1 results, Microsoft.Extensions.JsonParser.Sources.JsonObject settings, System.String propertyName, Boolean isGacOrFrameworkReference) [0x00000] in <filename unknown>:0
at Microsoft.Dnx.Runtime.ProjectReader.ReadProject (System.IO.Stream stream, System.String projectName, System.String projectPath, ICollection`1 diagnostics) [0x00000] in <filename unknown>:0
at Microsoft.Dnx.Runtime.Project.TryGetProject (System.String path, Microsoft.Dnx.Runtime.Project& project, ICollection`1 diagnostics) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at Microsoft.Dnx.Runtime.Project.TryGetProject (System.String path, Microsoft.Dnx.Runtime.Project& project, ICollection`1 diagnostics) [0x00000] in <filename unknown>:0
at Microsoft.Dnx.Tooling.RestoreCommand+<RestoreForProject>d__69.MoveNext () [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[System.Boolean].GetResult () [0x00000] in <filename unknown>:0
at Microsoft.Dnx.Tooling.RestoreCommand+<>c__DisplayClass68_0+<<Execute>b__2>d.MoveNext () [0x00000] in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00000] in <filename unknown>:0
at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <filename unknown>:0
at Microsoft.Dnx.Tooling.RestoreCommand+<Execute>d__68.MoveNext () [0x00000] in <filename unknown>:0
----------
Restore failed
unknown keyword platform

Feeds used:
https://api.nuget.org/v3-flatcontainer/
error: build error: non-zero (13) exit code from sabre1041/s2i-aspnet@sha256:5898de00aa698bd02f687e9be012c7a0273b8e793ac5b62455f30d6bc151fd54

Deploying a Sample Application does not work

I tried worklow describe here
https://developers.redhat.com/blog/2016/06/16/simplifying-asp-net-applications-on-openshift-with-the-asp-net-core-s2i-builder/

git clone https://github.com/openshift-s2i/s2i-aspnet-example
OK
oc new-project ose-dotnet
OK
oc new-app --template=aspnet-s2i –p GIT_URI=https://github.com/openshift-s2i/s2i-aspnet-example
I've obtained this:

--> Deploying template aspnet-s2i

 aspnet-s2i
 ---------
 Application template for asp .NET applications

 * With parameters:
    * Memory Limit=512Mi
    * Application Name=aspnet-app
    * Git URI=https://github.com/openshift-s2i/s2i-aspnet-example
    * Git Branch=master
    * Git Context Directory=app
    * Application hostname=
    * Upstream S2I Image=registry.access.redhat.com/dotnet/dotnetcore-10-rhel7
    * Upstream S2I Image Tag=latest
    * GitHub Webhook Secret=W2HAwCLF # generated
    * Generic Webhook Secret=Cl3TQXov # generated

--> Creating resources with label app=aspnet-s2i ...
imagestream "aspnet-app" created
imagestream "s2i-aspnet" created
service "aspnet-app" created
buildconfig "aspnet-app" created
error: DeploymentConfig "aspnet-app" is invalid: spec.template.metadata.labels: Invalid value: {"app":"aspnet-s2i","deploymentconfig":"aspnet-app"}: selector does not match template labels
route "aspnet-app" created
--> Failed

in Openshift portal/monitoring/Event table:

Time Name Kind Severity Reason Message
11:34:52 PM aspnet-app Build Config Warning Build config instantiate failed error instantiating Build from BuildConfig ose-dotnet/aspnet-app: Error resolving ImageStreamTag s2i-aspnet:latest in namespace ose-dotnet: imagestreamtags "s2i-aspnet:latest" not found

My configuration:

Windows 10 Aniversary - Lenovo X1 16Go Ram
Docker for Windows Version 1.13.0 (9795) (Default configuration)
openshift launched with following command:
c:>oc cluster up --version=v1.4.0 --routing-suffix=10.0.75.2.nip.io

Thank's for your help.

Couldn't find 'project.json' in '.'

By executing the command : oc new-app registry.access.redhat.com/dotnet/dotnetcore-10-rhel7~https://github.com/openshift-s2i/s2i-aspnet-example --name=aspnet-app we are receiving the error :
log : Restore completed in 76090ms.
---> Building application from source ...
Couldn't find 'project.json' in '.'

error: build error: non-zero (13) exit code from registry.access.redhat.com/dotnet/dotnetcore-10-rhel7@sha256:fc6ab7bb67b05cc42a0be9e01dbfdc45baeea7b3bb82fa57634be6a26bd89d47

The error is due because the directory of the application (app directory is not mentioned as the Source Context Dir for the code).
By editing the build config and adding app for Source Context Dir and rebuild it it's working fine.
If I'm importing the template and I'm using it it's working fine because app is mentioned for "Source Context Dir".
Thanks you for your work

Openshift enterprise - dotnet - Operation not permitted errors

Hello there. I am trying to build an asp.net application on our OpenShift enterprise platform. I am running into the following errors at the very end of the build process:

chgrp: changing group of '/opt/app-root/src/..1981_10_01_05_57_36.162036423/.gitconfig': Operation not permitted
  | chgrp: changing group of '/opt/app-root/src/..1981_10_01_05_57_36.162036423/password': Operation not permitted
  | chgrp: changing group of '/opt/app-root/src/..1981_10_01_05_57_36.162036423/username': Operation not permitted
  | chgrp: changing group of '/opt/app-root/src/..1981_10_01_05_57_36.162036423': Operation not permitted
  | chgrp: changing group of '/opt/app-root/src/..data': Operation not permitted
  | chgrp: changing group of '/opt/app-root/src/.gitconfig': Operation not permitted
  | chgrp: changing group of '/opt/app-root/src/password': Operation not permitted
  | chgrp: changing group of '/opt/app-root/src/username': Operation not permitted
  | chmod: changing permissions of '/opt/app-root/src/..1981_10_01_05_57_36.162036423': Operation not permitted
  | chmod: changing permissions of '/opt/app-root/src/..1981_10_01_05_57_36.162036423/.gitconfig': Operation not permitted
  | chmod: changing permissions of '/opt/app-root/src/..1981_10_01_05_57_36.162036423/password': Operation not permitted
  | chmod: changing permissions of '/opt/app-root/src/..1981_10_01_05_57_36.162036423/username': Operation not permitted
  | chmod: changing permissions of '/opt/app-root/src/..1981_10_01_05_57_36.162036423': Operation not permitted
  | error: build error: non-zero (13) exit code from registry.access.redhat.com/dotnet/dotnet-20-rhel7@sha256:0dbafdca780475373a34be07877b152f94ff7ef4168758f1f9011bc71793245f

Can someone help? thanks

currently fails to build on openshift.com free tier

I tried out this sample app using openshift free tier and it refused to build with:

Cloning "https://github.com/redhat-developer/s2i-dotnetcore-ex.git " ...
	Commit:	0543be02d0be779d08e6c43f82ef9f0610f5d4e3 (Update for .NET Core 2.0 release. (#32))
	Author:	Severin Gehwolf <[email protected]>
	Date:	Mon Aug 21 18:00:03 2017 +0200
Pulling image "registry.access.redhat.com/dotnet/dotnet-20-rhel7@sha256:0dbafdca780475373a34be07877b152f94ff7ef4168758f1f9011bc71793245f" ...
---> Copying application source ...
error: DOTNET_STARTUP_PROJECT has no project file
You can specify the startup project by adding an '.s2i/environment' file to the source repository.
The source repository contains the following projects:
- app/app.csproj
Update the '.s2i/environment' file to specify the project you want to publish, for example DOTNET_STARTUP_PROJECT=app/app.csproj.
error: build error: non-zero (13) exit code from registry.access.redhat.com/dotnet/dotnet-20-rhel7@sha256:0dbafdca780475373a34be07877b152f94ff7ef4168758f1f9011bc71793245f

System.NullReferenceException at System.TimeZoneInfo.IsAdjustmentRuleValid

I did
oc new-app registry.access.redhat.com/dotnet/dotnetcore-10-rhel7~https://github.com/openshift-s2i/s2i-aspnet-example --context-dir=app --name=aspnet-app

which results in
# oc logs -f aspnet-app-2-build
`I0810 15:43:16.614651 1 source.go:197] Downloading "https://github.com/openshift-s2i/s2i-aspnet-example" ...
I0810 15:43:40.233347 1 install.go:251] Using "assemble" installed from "image:///usr/libexec/s2i/assemble"
I0810 15:43:40.233806 1 install.go:251] Using "run" installed from "/.s2i/bin/run"
I0810 15:43:40.234829 1 install.go:251] Using "save-artifacts" installed from "image:///usr/libexec/s2i/save-artifacts"
---> Copying application source ...
---> Installing dependencies ...

Welcome to .NET Core!

Learn more about .NET Core @ https://aka.ms/dotnet-docs. Use dotnet --help to see available commands or go to https://aka.ms/dotnet-cli-docs.

Telemetry

The .NET Core tools collect usage data in order to improve your experience. The data is anonymous and does not include commandline arguments. The data is collected by Microsoft and shared with the community.
You can opt out of telemetry by setting a DOTNET_CLI_TELEMETRY_OPTOUT environment variable to 1 using your favorite shell.
You can read more about .NET Core tools telemetry @ https://aka.ms/dotnet-cli-telemetry.

Configuring...

A command is running to initially populate your local package cache, to improve restore speed and enable offline access. This command will take up to a minute to complete and will only happen once.
Decompressing 100% 2649 ms
E0810 15:43:45.245237 1 util.go:91]
E0810 15:43:45.248820 1 util.go:91] Unhandled Exception: System.AggregateException: One or more errors occurred. (One or more errors occurred. (Object reference not set to an instance of an object.)) (One or more errors occurred. (Object reference not set to an instance of an object.)) (Object reference not set to an instance of an object.) (Object reference not set to an instance of an object.) ---> System.NullReferenceException: Object reference not set to an instance of an object.
E0810 15:43:45.248873 1 util.go:91] at System.TimeZoneInfo.IsAdjustmentRuleValid(AdjustmentRule rule, AdjustmentRule previousRule, DateTime dateTime, DateTime dateOnly, Boolean dateTimeisUtc)
E0810 15:43:45.248906 1 util.go:91] at System.TimeZoneInfo.GetAdjustmentRuleForTime(DateTime dateTime, Boolean dateTimeisUtc)
E0810 15:43:45.248920 1 util.go:91] at System.TimeZoneInfo.GetUtcOffset(DateTime time, TimeZoneInfo zone, TimeZoneInfoOptions flags)
E0810 15:43:45.248926 1 util.go:91] at System.TimeZoneInfo.GetUtcOffset(DateTime dateTime, TimeZoneInfoOptions flags, CachedData cachedData)
E0810 15:43:45.248934 1 util.go:91] at System.DateTimeOffset..ctor(DateTime dateTime)
E0810 15:43:45.248939 1 util.go:91] at System.IO.Compression.ZipArchiveEntry..ctor(ZipArchive archive, ZipCentralDirectoryFileHeader cd)
E0810 15:43:45.248946 1 util.go:91] at System.IO.Compression.ZipArchive.ReadCentralDirectory()
E0810 15:43:45.248951 1 util.go:91] at System.IO.Compression.ZipArchive.GetEntry(String entryName)
E0810 15:43:45.248955 1 util.go:91] at Microsoft.DotNet.Archive.IndexedArchive.ExtractSource.CopyToStream(Stream destinationStream)
E0810 15:43:45.248959 1 util.go:91] at Microsoft.DotNet.Archive.IndexedArchive.CopyOperation.Execute()
E0810 15:43:45.248969 1 util.go:91] at Microsoft.DotNet.Archive.IndexedArchive.ExtractOperation.DoOperation()
E0810 15:43:45.248980 1 util.go:91] at Microsoft.DotNet.Archive.IndexedArchive.<>c__DisplayClass19_1.b__0(ExtractOperation extractOperation)
E0810 15:43:45.248986 1 util.go:91] at System.Linq.Parallel.ForAllOperator1.ForAllEnumerator1.MoveNext(TInput& currentElement, Int32& currentKey)
E0810 15:43:45.248992 1 util.go:91] at System.Linq.Parallel.ForAllSpoolingTask2.SpoolingWork() E0810 15:43:45.248996 1 util.go:91] at System.Linq.Parallel.SpoolingTaskBase.Work() E0810 15:43:45.249000 1 util.go:91] at System.Linq.Parallel.QueryTask.BaseWork(Object unused) E0810 15:43:45.249004 1 util.go:91] at System.Linq.Parallel.QueryTask.<>c.<.cctor>b__10_0(Object o) E0810 15:43:45.249009 1 util.go:91] at System.Threading.Tasks.Task.Execute() E0810 15:43:45.249013 1 util.go:91] --- End of inner exception stack trace --- E0810 15:43:45.249020 1 util.go:91] at System.Linq.Parallel.QueryTaskGroupState.QueryEnd(Boolean userInitiatedDispose) E0810 15:43:45.249025 1 util.go:91] at System.Linq.Parallel.MergeExecutor1.Execute()
E0810 15:43:45.249029 1 util.go:91] at System.Linq.Parallel.MergeExecutor1.Execute[TKey](PartitionedStream2 partitions, Boolean ignoreOutput, ParallelMergeOptions options, TaskScheduler taskScheduler, Boolean isOrdered, CancellationState cancellationState, Int32 queryId)
E0810 15:43:45.249034 1 util.go:91] at System.Linq.Parallel.PartitionedStreamMerger1.Receive[TKey](PartitionedStream2 partitionedStream)
E0810 15:43:45.249049 1 util.go:91] at System.Linq.Parallel.ForAllOperator1.WrapPartitionedStream[TKey](PartitionedStream2 inputStream, IPartitionedStreamRecipient1 recipient, Boolean preferStriping, QuerySettings settings) E0810 15:43:45.249062 1 util.go:91] at System.Linq.Parallel.UnaryQueryOperator2.UnaryQueryOperatorResults.ChildResultsRecipient.Receive[TKey](PartitionedStream2 inputStream) E0810 15:43:45.249067 1 util.go:91] at System.Linq.Parallel.ListQueryResults1.GivePartitionedStream(IPartitionedStreamRecipient1 recipient) E0810 15:43:45.249074 1 util.go:91] at System.Linq.Parallel.UnaryQueryOperator2.UnaryQueryOperatorResults.GivePartitionedStream(IPartitionedStreamRecipient1 recipient) E0810 15:43:45.249079 1 util.go:91] at System.Linq.Parallel.QueryOperator1.GetOpenedEnumerator(Nullable1 mergeOptions, Boolean suppressOrder, Boolean forEffect, QuerySettings querySettings) E0810 15:43:45.249085 1 util.go:91] at System.Linq.Parallel.ForAllOperator1.RunSynchronously()
E0810 15:43:45.249090 1 util.go:91] at System.Linq.ParallelEnumerable.ForAll[TSource](ParallelQuery1 source, Action1 action)
E0810 15:43:45.249096 1 util.go:91] at Microsoft.DotNet.Archive.IndexedArchive.Extract(String compressedArchivePath, String outputDirectory, IProgress1 progress) E0810 15:43:45.249103 1 util.go:91] at Microsoft.DotNet.Configurer.NuGetPackagesArchiver.ExtractArchive() E0810 15:43:45.249108 1 util.go:91] at Microsoft.DotNet.Configurer.NuGetCachePrimer.PrimeCache() E0810 15:43:45.249115 1 util.go:91] at Microsoft.DotNet.Configurer.DotnetFirstTimeUseConfigurer.Configure() E0810 15:43:45.249120 1 util.go:91] at Microsoft.DotNet.Cli.Program.ConfigureDotNetForFirstTimeUse(INuGetCacheSentinel nugetCacheSentinel) E0810 15:43:45.249126 1 util.go:91] at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient) E0810 15:43:45.249132 1 util.go:91] at Microsoft.DotNet.Cli.Program.Main(String[] args) E0810 15:43:45.516540 1 util.go:91] /usr/libexec/s2i/assemble: line 9: 15 Aborted (core dumped) dotnet restore

I am using:
OS: Fedora-24
Docker: 1.10.3
Timezone: CEST

OpenShift CDK v3.4 certificate error prevents build

Hi,

I was trying this sample app plus another I found a blog post on (http://www.arctiq.ca/our-blog/2016/10/2/7bepjjxhags4s130f2c9ggks5d4xjo) and found the same errors. Running on a Mac (10.12.3) with OpenShift CDK v3.4:

oc version
oc v3.4.1.2
kubernetes v1.4.0+776c994
features: Basic-Auth

Server https://10.1.2.2:8443
openshift v3.3.1.5
kubernetes v1.3.0+52492b4

[vagrant@rhel-cdk ~]$ uname -a
Linux rhel-cdk 3.10.0-514.el7.x86_64 #1 SMP Wed Oct 19 11:24:13 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux

Seems to be that there is a certificate error, but I don't know how to resolve. Any advice appreciated.

Cloning "https://github.com/openshift-s2i/s2i-aspnet-example" ...
Commit: 8b52d56 (Set DOTNET_NPM_TOOLS environment. (#19))
Author: Severin Gehwolf [email protected]
Date: Fri Jan 27 09:59:04 2017 +0100

---> Copying application source ...
---> Installing dependencies ...
log : Restoring packages for /opt/app-root/src/project.json...
error: Unable to load the service index for source https://api.nuget.org/v3/index.json.
error: An error occurred while sending the request.
error: Peer certificate cannot be authenticated with given CA certificates

error: build error: non-zero (13) exit code from registry.access.redhat.com/dotnet/dotnetcore-10-rhel7@sha256:fc6ab7bb67b05cc42a0be9e01dbfdc45baeea7b3bb82fa57634be6a26bd89d47

Update to 2.0.0

app.csproj refers to the version2.0.0-preview2-final. We should update this to 2.0.0 to work with the final release.

Creating template does not work

Executing

oc create -f templates/aspnet-s2i-template.json -n openshift

or

oc create templates/aspnet-s2i-template.json -n openshift

does not work. This is a relative path.

Successful deployment but shows Application Not Available: Dot Net Core

Hello

I am trying out the Free-Tier of Openshift Online, and creating a Dot Net Core project using the sample github repository provided by Openshift.
https://github.com/redhat-developer/s2i-dotnetcore-ex.git

The application builds fine and deployment is also successful without errors. However, when I try to visit the website via the url provided, I always get the "Application Not Available" message. The chrome browser's dev-tools show that I am getting a 503 status from Openshift.
The url I have been given by Openshift to check the website is :
http://defapp-defproj.7e14.starter-us-west-2.openshiftapps.com

This has been going on for over a week. Before that, everything was working fine, the website was loading fine. Could you please look into it and provide a resolution?

Steps to replicate the issue:

  1. Create a sample project with Dot Net Core 2.1
  2. The project auto-builds and auto-deploys successfully
  3. Once deployment is complete, visit the website url provided, you will see Application Not Available error.

Logs:

Deploy Logs
---> Running application ...
warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
No XML encryptor configured. Key {77782cbf-74fb-447e-956a-f94fb2d9af76} may be persisted to storage in unencrypted form.
Hosting environment: Production
Content root path: /opt/app-root/app
Now listening on: http://[::]:8080
Application started. Press Ctrl+C to shut down.

Build Logs
Cloning "https://github.com/redhat-developer/s2i-dotnetcore-ex.git " ...
Commit: 1ded43a (Update for 2.1 release.)
Author: Tom Deseyn [email protected]
Date: Mon May 28 10:08:30 2018 +0200
Pulling image "docker-registry.default.svc:5000/openshift/dotnet@sha256:d27fa8df1866765695ba0d2bcc74337732eeddffcaf51759fd4d080fc92d6305" ...
Using docker-registry.default.svc:5000/openshift/dotnet@sha256:d27fa8df1866765695ba0d2bcc74337732eeddffcaf51759fd4d080fc92d6305 as the s2i builder image
---> Installing application source...
Using SDK: 2.1.302
---> Restoring application dependencies...
Restoring packages for /opt/app-root/src/app.csproj...
Installing System.Xml.XmlSerializer 4.3.0.
Installing runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple 4.3.0.
Installing runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing System.Private.DataContractSerialization 4.3.0.
Installing System.Security.Principal 4.3.0.
Installing System.Diagnostics.DiagnosticSource 4.3.0.
Installing System.Globalization.Extensions 4.3.0.
Installing Microsoft.NETCore.App 2.1.0.
Installing System.Globalization.Extensions 4.0.1.
Installing Microsoft.AspNetCore.App 2.1.6.
Installing System.Security.Cryptography.Cng 4.2.0.
Installing Microsoft.NETCore.Targets 2.1.0.
Installing Microsoft.NETCore.Platforms 2.1.0.
Installing NETStandard.Library 2.0.3.
Installing System.Security.Cryptography.OpenSsl 4.0.0.
Installing System.Security.Cryptography.Csp 4.0.0.
Installing runtime.native.System.Net.Http 4.0.1.
Installing runtime.native.System.Security.Cryptography 4.0.0.
Installing System.Buffers 4.0.0.
Installing System.Threading.Tasks.Extensions 4.0.0.
Installing runtime.native.System.IO.Compression 4.1.0.
Installing runtime.native.System 4.0.0.
Installing runtime.native.System.Security.Cryptography.Apple 4.3.0.
Installing Microsoft.NETCore.DotNetHostPolicy 2.1.0.
Installing Microsoft.AspNetCore.Authentication 2.1.2.
Installing Microsoft.AspNetCore.Mvc 2.1.3.
Installing Microsoft.AspNetCore.Authentication.Abstractions 2.1.1.
Installing Microsoft.AspNetCore.Authentication.Facebook 2.1.2.
Installing Microsoft.AspNetCore.Antiforgery 2.1.1.
Installing Microsoft.AspNetCore.Authentication.Google 2.1.2.
Installing Microsoft.AspNetCore.Authentication.Cookies 2.1.2.
Installing Microsoft.AspNetCore 2.1.6.
Installing Microsoft.AspNetCore.Authentication.Core 2.1.1.
Installing Microsoft.Extensions.FileProviders.Abstractions 2.1.1.
Installing Microsoft.Extensions.FileProviders.Embedded 2.1.1.
Installing Microsoft.AspNetCore.Cryptography.Internal 2.1.1.
Installing System.Xml.XPath 4.3.0.
Installing Microsoft.AspNetCore.DataProtection.Abstractions 2.1.1.
Installing Microsoft.AspNetCore.Authentication.MicrosoftAccount 2.1.2.
Installing Microsoft.AspNetCore.Authorization 2.1.2.
Installing Microsoft.AspNetCore.CookiePolicy 2.1.2.
Installing Microsoft.AspNetCore.Cryptography.KeyDerivation 2.1.1.
Installing Microsoft.AspNetCore.Cors 2.1.1.
Installing System.IO.Pipelines 4.5.2.
Installing Microsoft.AspNetCore.HostFiltering 2.1.1.
Installing Microsoft.AspNetCore.DataProtection.Extensions 2.1.1.
Installing Microsoft.AspNetCore.Authorization.Policy 2.1.2.
Installing System.Security.Cryptography.OpenSsl 4.3.0.
Installing Microsoft.AspNetCore.Authentication.Twitter 2.1.2.
Installing Microsoft.AspNetCore.Connections.Abstractions 2.1.3.
Installing Microsoft.AspNetCore.Diagnostics.Abstractions 2.1.1.
Installing Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore 2.1.1.
Installing Microsoft.AspNetCore.Hosting.Abstractions 2.1.1.
Installing Microsoft.AspNetCore.Authentication.OAuth 2.1.2.
Installing Microsoft.AspNetCore.Http.Features 2.1.1.
Installing Microsoft.AspNetCore.Hosting.Server.Abstractions 2.1.1.
Installing Microsoft.AspNetCore.Http 2.1.1.
Installing Microsoft.AspNetCore.Html.Abstractions 2.1.1.
Installing Microsoft.AspNetCore.Identity 2.1.6.
Installing System.Security.Cryptography.Csp 4.3.0.
Installing Microsoft.Extensions.WebEncoders 2.1.1.
Installing Microsoft.AspNetCore.Http.Abstractions 2.1.1.
Installing Microsoft.AspNetCore.Identity.EntityFrameworkCore 2.1.6.
Installing Microsoft.AspNetCore.HttpsPolicy 2.1.1.
Installing Microsoft.Extensions.Options.ConfigurationExtensions 2.1.1.
Installing Microsoft.AspNetCore.Http.Connections 1.0.4.
Installing Microsoft.AspNetCore.Localization 2.1.1.
Installing Microsoft.AspNetCore.HttpOverrides 2.1.1.
Installing Microsoft.AspNetCore.Identity.UI 2.1.6.
Installing Microsoft.Net.Http.Headers 2.1.1.
Installing Microsoft.AspNetCore.Http.Connections.Common 1.0.4.
Installing Microsoft.AspNetCore.Http.Extensions 2.1.1.
Installing Microsoft.Extensions.Primitives 2.1.6.
Installing Microsoft.AspNetCore.Localization.Routing 2.1.1.
Installing Microsoft.AspNetCore.MiddlewareAnalysis 2.1.1.
Installing Microsoft.AspNetCore.Diagnostics 2.1.1.
Installing Microsoft.AspNetCore.Hosting 2.1.1.
Installing Microsoft.AspNetCore.Mvc.Abstractions 2.1.3.
Installing Microsoft.Extensions.ObjectPool 2.1.6.
Installing Microsoft.AspNetCore.JsonPatch 2.1.1.
Installing Microsoft.AspNetCore.DataProtection 2.1.1.
Installing Microsoft.AspNetCore.Mvc.Analyzers 2.1.3.
Installing Microsoft.AspNetCore.Mvc.Formatters.Json 2.1.3.
Installing Microsoft.Extensions.Caching.SqlServer 2.1.2.
Installing System.Security.Cryptography.Cng 4.3.0.
Installing Microsoft.Extensions.Logging.EventSource 2.1.1.
Installing Microsoft.AspNetCore.Mvc.Cors 2.1.3.
Installing Microsoft.AspNetCore.Mvc.ApiExplorer 2.1.3.
Installing Microsoft.Extensions.Logging.TraceSource 2.1.1.
Installing Microsoft.Extensions.Logging.Abstractions 2.1.1.
Installing Microsoft.Extensions.Logging 2.1.1.
Installing Microsoft.Extensions.Logging.Debug 2.1.1.
Installing Microsoft.Extensions.Logging.Console 2.1.1.
Installing Microsoft.Extensions.Logging.Configuration 2.1.1.
Installing runtime.native.System.Net.Http 4.3.0.
Installing Microsoft.Extensions.Localization.Abstractions 2.1.1.
Installing Microsoft.AspNetCore.Mvc.Localization 2.1.3.
Installing runtime.native.System.Security.Cryptography.OpenSsl 4.3.0.
Installing Microsoft.AspNetCore.Mvc.DataAnnotations 2.1.3.
Installing Microsoft.AspNetCore.Mvc.Razor.Extensions 2.1.2.
Installing Microsoft.Extensions.Identity.Stores 2.1.6.
Installing Microsoft.Extensions.Hosting.Abstractions 2.1.1.
Installing System.Buffers 4.3.0.
Installing Microsoft.AspNetCore.Razor 2.1.2.
Installing Microsoft.Extensions.Http 2.1.1.
Installing Microsoft.Extensions.Localization 2.1.1.
Installing runtime.native.System.IO.Compression 4.3.0.
Installing Microsoft.AspNetCore.Owin 2.1.1.
Installing Microsoft.AspNetCore.Mvc.TagHelpers 2.1.3.
Installing runtime.native.System 4.3.0.
Installing Microsoft.AspNetCore.ResponseCaching.Abstractions 2.1.1.
Installing Microsoft.Extensions.Identity.Core 2.1.6.
Installing Microsoft.AspNetCore.Razor.Runtime 2.1.2.
Installing System.Runtime.Serialization.Xml 4.3.0.
Installing Microsoft.AspNetCore.ResponseCompression 2.1.1.
Installing Microsoft.AspNetCore.Rewrite 2.1.1.
Installing Microsoft.AspNetCore.ResponseCaching 2.1.1.
Installing Microsoft.AspNetCore.Razor.Language 2.1.2.
Installing Microsoft.AspNetCore.Mvc.Formatters.Xml 2.1.3.
Installing Microsoft.AspNetCore.Server.HttpSys 2.1.1.
Installing Microsoft.AspNetCore.NodeServices 2.1.1.
Installing Microsoft.AspNetCore.Routing.Abstractions 2.1.1.
Installing Microsoft.AspNetCore.Routing 2.1.1.
Installing Microsoft.AspNetCore.Mvc.RazorPages 2.1.3.
Installing System.Security.Claims 4.3.0.
Installing Microsoft.AspNetCore.Server.Kestrel 2.1.3.
Installing Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets 2.1.3.
Installing Microsoft.AspNetCore.Razor.Design 2.1.2.
Installing Microsoft.AspNetCore.Server.Kestrel.Https 2.1.3.
Installing System.Diagnostics.Contracts 4.3.0.
Installing Microsoft.AspNetCore.SignalR.Common 1.0.4.
Installing Microsoft.AspNetCore.SignalR.Protocols.Json 1.0.4.
Installing Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions 2.1.3.
Installing Microsoft.AspNetCore.SpaServices 2.1.1.
Installing Microsoft.Extensions.Hosting 2.1.1.
Installing Microsoft.Extensions.FileProviders.Physical 2.1.1.
Installing Microsoft.Extensions.DependencyInjection.Abstractions 2.1.1.
Installing Microsoft.AspNetCore.Server.IISIntegration 2.1.2.
Installing Microsoft.AspNetCore.Server.Kestrel.Core 2.1.3.
Installing Microsoft.AspNetCore.Session 2.1.1.
Installing Microsoft.AspNetCore.StaticFiles 2.1.1.
Installing Microsoft.AspNetCore.SignalR 1.0.4.
Installing Microsoft.Extensions.FileSystemGlobbing 2.1.1.
Installing Microsoft.AspNetCore.SpaServices.Extensions 2.1.1.
Installing Microsoft.Extensions.DependencyInjection 2.1.1.
Installing Microsoft.IdentityModel.Logging 5.2.0.
Installing Microsoft.Extensions.DiagnosticAdapter 2.1.0.
Installing Microsoft.AspNetCore.WebUtilities 2.1.1.
Installing Microsoft.Extensions.FileProviders.Composite 2.1.1.
Installing Microsoft.Extensions.Configuration.Xml 2.1.1.
Installing Microsoft.AspNetCore.Mvc.Core 2.1.3.
Installing Microsoft.EntityFrameworkCore.Relational 2.1.4.
Installing Microsoft.EntityFrameworkCore.Abstractions 2.1.4.
Installing Microsoft.Extensions.Caching.Abstractions 2.1.2.
Installing Microsoft.EntityFrameworkCore.InMemory 2.1.4.
Installing Microsoft.EntityFrameworkCore.SqlServer 2.1.4.
Installing Microsoft.Extensions.Caching.Memory 2.1.2.
Installing Microsoft.Extensions.Configuration.Binder 2.1.1.
Installing Microsoft.Extensions.Configuration.Abstractions 2.1.1.
Installing Microsoft.Extensions.Configuration 2.1.1.
Installing Microsoft.Extensions.Configuration.UserSecrets 2.1.1.
Installing Microsoft.EntityFrameworkCore.Analyzers 2.1.4.
Installing Microsoft.Extensions.Configuration.KeyPerFile 2.1.1.
Installing Microsoft.Extensions.Configuration.Json 2.1.1.
Installing Microsoft.AspNetCore.WebSockets 2.1.1.
Installing Microsoft.EntityFrameworkCore.Design 2.1.4.
Installing Microsoft.Extensions.Configuration.Ini 2.1.1.
Installing Microsoft.AspNetCore.SignalR.Core 1.0.4.
Installing Microsoft.Extensions.Configuration.FileExtensions 2.1.1.
Installing Microsoft.Extensions.Configuration.EnvironmentVariables 2.1.1.
Installing Microsoft.EntityFrameworkCore.Tools 2.1.4.
Installing Microsoft.Extensions.Configuration.CommandLine 2.1.1.
Installing Microsoft.EntityFrameworkCore 2.1.4.
Installing Microsoft.Extensions.Options 2.1.1.
Installing Microsoft.AspNetCore.Mvc.Razor.ViewCompilation 2.1.1.
Installing Microsoft.AspNet.WebApi.Client 5.2.6.
Installing System.Net.Http 4.3.0.
Installing Microsoft.AspNetCore.Authentication.JwtBearer 2.1.2.
Installing Microsoft.AspNetCore.Authentication.OpenIdConnect 2.1.2.
Installing Microsoft.AspNetCore.Authentication.WsFederation 2.1.2.
Installing Microsoft.AspNetCore.Mvc.ViewFeatures 2.1.3.
Installing Microsoft.CodeAnalysis.Razor 2.1.2.
Installing Microsoft.AspNetCore.Mvc.Razor 2.1.3.
Installing Microsoft.NETCore.DotNetHostResolver 2.1.0.
Installing Newtonsoft.Json 11.0.2.
Installing System.Text.Encodings.Web 4.5.0.
Installing System.Buffers 4.5.0.
Installing System.Runtime.CompilerServices.Unsafe 4.5.2.
Installing System.Memory 4.5.1.
Installing System.Diagnostics.DiagnosticSource 4.5.0.
Installing System.Reflection.Metadata 1.6.0.
Installing Microsoft.CSharp 4.5.0.
Installing System.Security.Principal.Windows 4.5.0.
Installing Microsoft.Win32.Registry 4.5.0.
Installing System.Security.Cryptography.Xml 4.5.0.
Installing System.Data.SqlClient 4.5.1.
Installing System.ComponentModel.Annotations 4.5.0.
Installing System.Security.Principal.Windows 4.5.1.
Installing System.Numerics.Vectors 4.5.0.
Installing System.Security.Cryptography.Cng 4.5.0.
Installing System.Threading.Tasks.Extensions 4.5.1.
Installing System.Runtime.CompilerServices.Unsafe 4.5.1.
Installing System.Diagnostics.DiagnosticSource 4.5.1.
Installing Microsoft.Extensions.DependencyModel 2.1.0.
Installing System.Net.WebSockets.WebSocketProtocol 4.5.1.
Installing System.Reflection.Emit 4.3.0.
Installing System.Threading.Channels 4.5.0.
Installing System.Runtime.InteropServices.RuntimeInformation 4.3.0.
Installing System.Collections.Immutable 1.5.0.
Installing System.Interactive.Async 3.1.1.
Installing Newtonsoft.Json 10.0.1.
Installing Remotion.Linq 2.2.0.
Installing Newtonsoft.Json.Bson 1.0.1.
Installing Microsoft.IdentityModel.Protocols.OpenIdConnect 5.2.0.
Installing System.IdentityModel.Tokens.Jwt 5.2.0.
Installing Microsoft.IdentityModel.Protocols.WsFederation 5.2.0.
Installing Microsoft.CodeAnalysis.CSharp 2.8.0.
Installing Microsoft.NETCore.DotNetAppHost 2.1.0.
Installing Microsoft.NETCore.Platforms 2.0.0.
Installing System.Security.AccessControl 4.5.0.
Installing System.Security.Permissions 4.5.0.
Installing Microsoft.CodeAnalysis.Common 2.8.0.
Installing System.Security.Cryptography.Pkcs 4.5.0.
Installing System.Text.Encoding.CodePages 4.5.0.
Installing runtime.native.System.Data.SqlClient.sni 4.4.0.
Installing System.Diagnostics.Debug 4.0.11.
Installing System.Linq 4.1.0.
Installing System.Dynamic.Runtime 4.0.11.
Installing System.IO.Compression.ZipFile 4.3.0.
Installing Newtonsoft.Json 9.0.1.
Installing Microsoft.DotNet.PlatformAbstractions 2.1.0.
Installing System.IO 4.3.0.
Installing System.Reflection 4.3.0.
Installing System.Reflection.Emit.ILGeneration 4.3.0.
Installing System.Reflection.Primitives 4.3.0.
Installing System.Runtime 4.3.0.
Installing NETStandard.Library 1.6.0.
Installing System.Collections 4.0.11.
Installing System.Linq.Expressions 4.1.0.
Installing System.ObjectModel 4.0.12.
Installing System.Reflection 4.1.0.
Installing System.Reflection.Extensions 4.0.1.
Installing System.Runtime 4.1.0.
Installing System.Runtime.Extensions 4.1.0.
Installing System.Threading 4.0.11.
Installing System.Linq.Queryable 4.0.1.
Installing System.Linq 4.3.0.
Installing System.ObjectModel 4.3.0.
Installing System.Runtime.Numerics 4.3.0.
Installing System.Runtime.Serialization.Primitives 4.3.0.
Installing System.Text.RegularExpressions 4.3.0.
Installing System.Threading 4.3.0.
Installing System.Resources.ResourceManager 4.3.0.
Installing System.Net.Primitives 4.3.0.
Installing System.Diagnostics.Debug 4.3.0.
Installing System.Reflection.Extensions 4.3.0.
Installing System.Globalization 4.3.0.
Installing System.Text.Encoding 4.3.0.
Installing System.Text.Encoding.Extensions 4.3.0.
Installing System.Runtime.Extensions 4.3.0.
Installing System.Threading.Tasks 4.3.0.
Installing System.Collections 4.3.0.
Installing System.Runtime.Serialization.Formatters 4.3.0.
Installing System.Xml.XDocument 4.3.0.
Installing System.Xml.XmlDocument 4.3.0.
Installing System.Dynamic.Runtime 4.3.0.
Installing System.Linq.Expressions 4.3.0.
Installing Microsoft.CSharp 4.3.0.
Installing System.Xml.ReaderWriter 4.3.0.
Installing System.ComponentModel.TypeConverter 4.3.0.
Installing NETStandard.Library 1.6.1.
Installing Microsoft.IdentityModel.Protocols 5.2.0.
Installing Microsoft.IdentityModel.Tokens 5.2.0.
Installing Microsoft.IdentityModel.Xml 5.2.0.
Installing Microsoft.IdentityModel.Tokens.Saml 5.2.0.
Installing System.AppContext 4.3.0.
Installing System.Collections.Concurrent 4.3.0.
Installing System.Collections.Immutable 1.3.1.
Installing System.Console 4.3.0.
Installing System.Net.Sockets 4.3.0.
Installing System.Diagnostics.Tools 4.3.0.
Installing System.IO.Compression 4.3.0.
Installing System.IO.FileSystem 4.3.0.
Installing System.IO.FileSystem.Primitives 4.3.0.
Installing System.Security.Cryptography.Primitives 4.3.0.
Installing System.Runtime.InteropServices 4.3.0.
Installing System.Security.Cryptography.Encoding 4.3.0.
Installing System.Security.Cryptography.X509Certificates 4.3.0.
Installing System.Reflection.Metadata 1.4.2.
Installing System.Text.Encoding.CodePages 4.3.0.
Installing System.Threading.Tasks.Parallel 4.3.0.
Installing System.Runtime.Handles 4.3.0.
Installing Microsoft.CodeAnalysis.Analyzers 1.1.0.
Installing System.Diagnostics.StackTrace 4.3.0.
Installing System.Diagnostics.FileVersionInfo 4.3.0.
Installing System.Threading.Thread 4.3.0.
Installing System.ValueTuple 4.3.0.
Installing System.Xml.XPath.XDocument 4.3.0.
Installing System.Security.Cryptography.Algorithms 4.3.0.
Installing System.Globalization.Calendars 4.3.0.
Installing System.Runtime.CompilerServices.Unsafe 4.5.0.
Installing runtime.win-x64.runtime.native.System.Data.SqlClient.sni 4.4.0.
Installing runtime.win-arm64.runtime.native.System.Data.SqlClient.sni 4.4.0.
Installing runtime.win-x86.runtime.native.System.Data.SqlClient.sni 4.4.0.
Installing Microsoft.NETCore.Targets 1.0.1.
Installing Microsoft.NETCore.Platforms 1.0.1.
Installing System.Resources.ResourceManager 4.0.1.
Installing System.Threading.Timer 4.3.0.
Installing System.Reflection.TypeExtensions 4.1.0.
Installing System.Globalization 4.0.11.
Installing System.Reflection.Primitives 4.0.1.
Installing System.Reflection.Emit.ILGeneration 4.0.1.
Installing System.Reflection.Emit 4.0.1.
Installing System.Threading.Tasks 4.0.11.
Installing System.IO 4.1.0.
Installing System.Text.Encoding 4.0.11.
Installing System.Text.RegularExpressions 4.1.0.
Installing System.Text.Encoding.Extensions 4.0.11.
Installing Microsoft.Win32.Primitives 4.3.0.
Installing System.Runtime.Serialization.Primitives 4.1.1.
Installing System.Xml.XDocument 4.0.11.
Installing System.Xml.ReaderWriter 4.0.11.
Installing Microsoft.CSharp 4.0.1.
Installing System.Diagnostics.Tracing 4.3.0.
Installing System.IO.FileSystem 4.0.1.
Installing System.AppContext 4.1.0.
Installing System.Runtime.InteropServices 4.1.0.
Installing System.Runtime.InteropServices.RuntimeInformation 4.0.0.
Installing System.Collections.Specialized 4.3.0.
Installing Microsoft.NETCore.Platforms 1.1.0.
Installing Microsoft.NETCore.Targets 1.1.0.
Installing System.Diagnostics.Tools 4.0.1.
Installing System.IO.FileSystem.Primitives 4.0.1.
Installing System.Runtime.Handles 4.0.1.
Installing System.Collections.Concurrent 4.0.12.
Installing System.Net.Sockets 4.1.0.
Installing System.Collections.NonGeneric 4.3.0.
Installing Microsoft.Win32.Primitives 4.0.1.
Installing System.Runtime.Numerics 4.0.1.
Installing System.Threading.Timer 4.0.1.
Installing System.Console 4.0.0.
Installing System.Globalization.Calendars 4.0.1.
Installing System.Net.Primitives 4.0.11.
Installing System.Diagnostics.Tracing 4.1.0.
Installing System.Security.Cryptography.Primitives 4.0.0.
Installing System.IO.Compression 4.1.0.
Installing System.ComponentModel.Primitives 4.3.0.
Installing System.IO.Compression.ZipFile 4.0.1.
Installing System.Security.Cryptography.Encoding 4.0.0.
Installing System.Security.Cryptography.Algorithms 4.2.0.
Installing System.Security.Cryptography.X509Certificates 4.1.0.
Installing System.Net.Http 4.1.0.
Installing System.Reflection.Emit.Lightweight 4.0.1.
Installing System.Reflection.TypeExtensions 4.3.0.
Installing System.Reflection.Emit.Lightweight 4.3.0.
Installing System.ComponentModel 4.3.0.
Installing System.Threading.Tasks.Extensions 4.3.0.
Generating MSBuild file /opt/app-root/src/obj/app.csproj.nuget.g.props.
Generating MSBuild file /opt/app-root/src/obj/app.csproj.nuget.g.targets.
Restore completed in 16.57 sec for /opt/app-root/src/app.csproj.
---> Publishing application...
Microsoft (R) Build Engine version 15.7.179.62826 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

Restore completed in 63.68 ms for /opt/app-root/src/app.csproj.
app -> /opt/app-root/src/bin/Release/netcoreapp2.1/app.dll
app -> /opt/app-root/src/bin/Release/netcoreapp2.1/app.Views.dll
app -> /opt/app-root/app/

Pushing image docker-registry.default.svc:5000/defproj/defapp:latest ...
Pushed 0/5 layers, 2% complete
Pushed 1/5 layers, 36% complete
Pushed 2/5 layers, 47% complete
Pushed 2/5 layers, 40% complete
Pushed 2/5 layers, 51% complete
Pushed 2/5 layers, 55% complete
Pushed 3/5 layers, 60% complete
Warning: Push failed, retrying in 5s ...
Push successful

Should we add more debugging information to the app?

Folowing up from #55, and based on seeing some customer cases, I wonder if it would be beneficial if the sample app told us a few things straight up so we didn't to do a few rounds of emails with customers asking for it:

  • .NET Version
  • Value of some environment variables, like ASPNETCORE_URLS
  • @omajid to add more

https://github.com/dotnet/dotnet-docker/blob/main/samples/aspnetapp/aspnetapp/Pages/Index.cshtml seems like something we could adapt/borrow from.

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.