Skip to content

A simple multi-container-ready project demonstrating the use of the Microsoft ASP.Net Core 2.2 framework

Notifications You must be signed in to change notification settings

Bnjmn83/balena-aspnet-core

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Example ASP.NET Core running on Balena

Overview:

We have a simple multi-stage build Dockerfile which is in the balena-template format. This is to allow our cloud builders to do variable substitution on things like %%BALENA_ARCH%% which make the image suitable for amd64 and armv7hf targets.

The helper script install-dotnet.sh is responsible for acquiring the correct verison of the framework binaries for your platform, which is invoked in both the sdk and final stages of the build; first to acquire the SDK binaries and then to acquire ONLY the runtime binaries.

To deploy this project:

  • Create a balena application using the cloud dashboard, e.g. myAspNetCoreApp
    • You can target any device type which is compatible with the following architectures:
      • armv7hf
      • amd64
  • Clone this repo to your machine:
    • git clone https://github.com/balena-io-playground/balena-aspnet-core.git
  • In the repo directory, use the balena-cli application to push it to your application:
    • balena push myAspNetCoreApp

This application will host a simple site on port 80 which you should be able to view once it is deployed.

About

A simple multi-container-ready project demonstrating the use of the Microsoft ASP.Net Core 2.2 framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 52.5%
  • C# 26.9%
  • Shell 10.7%
  • CSS 8.3%
  • JavaScript 1.6%