All Projects → spboyer → docker-why

spboyer / docker-why

Licence: other
Quick example of using SQL Server and .NET Core on Linux, loading data using bash

Programming Languages

C#
18002 projects
Dockerfile
14818 projects
CSS
56736 projects
shell
77523 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to docker-why

Plato
Plato helps software teams connect & stay engaged with users to gather feedback, provide support & deliver better software.
Stars: ✭ 293 (+614.63%)
Mutual labels:  sql-server, dotnetcore
Home
Asp.net core Mvc Controls Toolkit
Stars: ✭ 33 (-19.51%)
Mutual labels:  dotnetcore
maruko
maruko是一个基于dotnetcore的快速开发框架,他实现freesql,automap,模块化,DDD 设计思想等常用性功能.
Stars: ✭ 29 (-29.27%)
Mutual labels:  dotnetcore
dotnet-upforgrabs
.NET Core Global Tool to help you get started with contributing to Open Source projects.
Stars: ✭ 50 (+21.95%)
Mutual labels:  dotnetcore
peachpie-samples
Sample projects demonstrating use of Peachpie - the PHP compiler and runtime for .NET
Stars: ✭ 44 (+7.32%)
Mutual labels:  dotnetcore
EasyTokenGenerator
This repo aims to dynamically and simply generate tokens in Token Based systems.
Stars: ✭ 15 (-63.41%)
Mutual labels:  dotnetcore
N-Tier-Architecture
This is a n-layer architecture based on Common web application architectures.
Stars: ✭ 105 (+156.1%)
Mutual labels:  sql-server
depremkontrol
Simple demonstration of .NET Core 3.0 - BackgroundService to create long-running IHostedService applications
Stars: ✭ 13 (-68.29%)
Mutual labels:  dotnetcore
dba-database
Database containing DBA helper code and open source software.
Stars: ✭ 79 (+92.68%)
Mutual labels:  sql-server
YelpDatasetSQL
Working with the Yelp Dataset in Azure SQL and SQL Server
Stars: ✭ 16 (-60.98%)
Mutual labels:  sql-server
rbac-react-redux-aspnetcore
A starter template for creating JWT token from ASP.NET Core API project and applying that JWT token authentication on React application
Stars: ✭ 54 (+31.71%)
Mutual labels:  sql-server
sql server
Development repository for the sql_server cookbook
Stars: ✭ 60 (+46.34%)
Mutual labels:  sql-server
PdoOne
It simplifies the use of PDO in PHP by adding three methods: a simple wrapper between PDO, a query builder and an ORM.
Stars: ✭ 93 (+126.83%)
Mutual labels:  sql-server
Health
App Metrics Health is an open-source and cross-platform .NET library used to define and report application health checks
Stars: ✭ 25 (-39.02%)
Mutual labels:  dotnetcore
SQLDBA-SSMS-Solution
This respository contains TSQL/PowerShell Scripts to resolve issues of SQL Servers
Stars: ✭ 21 (-48.78%)
Mutual labels:  sql-server
EnyimMemcachedCore
A Memcached client for .NET Core. Available on Nuget https://www.nuget.org/packages/EnyimMemcachedCore
Stars: ✭ 143 (+248.78%)
Mutual labels:  dotnetcore
JT809DotNetty
JT809DotNetty
Stars: ✭ 30 (-26.83%)
Mutual labels:  dotnetcore
ASPNETcoreAngularJWT
Angular in ASP.NET Core with JWT solution by systemjs
Stars: ✭ 48 (+17.07%)
Mutual labels:  dotnetcore
CEDS-IDS
The CEDS Integrated Data Store factors the entities and attributes of the CEDS Domain Entity Schema (DES) with standard technical syntax and 3rd normal form database normalization. The IDS Logical Model provides a standard framework for integration of P-20 data systems through a well-normalized “operational data store”. In a P-20 data system, th…
Stars: ✭ 29 (-29.27%)
Mutual labels:  sql-server
Okanshi
mvno.github.io/okanshi
Stars: ✭ 14 (-65.85%)
Mutual labels:  dotnetcore

docker-why

# change directory
cd src
# build compose files from scratch
docker-compose build --no-cache
# start compose
docker-compose up

Need to wait about 25-30 seconds for the SQL Server to boot and load test data.

Browse to http://localhost:57270 and click the Names link

Adding development certificate for ASP.NET

# Remove and certs from the app if there
dotnet dev-certs https --clean

# Export certificate with a password and TRUST using the --trust flag
# to the path ${HOME}/.aspnet/https/<appname>.pfx -p <password> --trust
dotnet dev-certs https -ep ${HOME}/.aspnet/https/namesweb.pfx -p P@55w0rd --trust

# Add the password of the cert to the user secrets for the app
dotnet user-secrets set "Kestrel:Certificates:Development:Password" "P@55w0rd" --id 7A303942-47A6-491F-80AD-78057FA8B0CB

Docker and docker-compose elements

  • EXPOSE 443 in the Dockerfile (80 is EXPOSED by default)
  • docker-compose map ports and environment variables
environment:
      - ASPNETCORE_ENVIRONMENT=Development
      - ASPNETCORE_URLS=https://+;http://+
      - ASPNETCORE_HTTPS_PORT=44349
    ports:
    # Replace the values on the left by the values on your launchSettings.json
      - "57270:80"
      - "44348:443"
    volumes:
      - ${HOME}/.microsoft/usersecrets/:/root/.microsoft/usersecrets
      - ${HOME}/.aspnet/https:/root/.aspnet/https/

ASP.NET Core App launchsettings.json

 "applicationUrl": "http://localhost:57270",
      "sslPort": 44348
    }
```
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].