Skip to content

Instantly share code, notes, and snippets.

Amjad Afanah amjadafanah

Block or report user

Report or block amjadafanah

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View hyper-v-4gb-ubuntu-template
Ubuntu4G:
region: IM-DEVBOX
image: \\VFCN10-AD\HyperForm\Template\HyperForm_Ubuntu-14.04_64_10.0.254.100.vhdx
instanceType: cpu=1,memory=4GB,disk=100GB,generation=1
network: Virtual Switch1
skipAgentInstall: true
count: 1
View dotnet-db-initialization-plugin
#!/bin/bash
dotnet restore
dotnet ef database update
dotnet run
View dotnet-plugin-example
dotnet:
image: dchq/dotnet-names-directory:latest
publish_all: true
#ports:
# - 5000:5000
host: host1
mem_min: 200m
environment:
- database_driverClassName=mssql
- database_url=Server=tcp:dchq-sql-server.database.windows.net,1433;Initial Catalog=NameDirectory;Persist Security Info=False;User ID={your_username};Password={your_password};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;
View nginx-plugin-example-dotnet
nginx:
image: nginx:latest
publish_all: true
mem_min: 50m
host: host1
plugins:
- !plugin
id: 0H1Nk
restart: true
lifecycle: on_create, post_scale_out:dotnet, post_scale_in:dotnet
View 2-Tier .NET (Apache HTTP Connecting to MS SQL Server)
http-lb:
image: httpd:latest
publish_all: true
mem_min: 50m
host: host1
plugins:
- !plugin
id: uazUi
restart: true
lifecycle: on_create, post_scale_out:dotnet, post_scale_in:dotnet
View 2-Tier .NET (Nginx Connecting to MS SQL Server)
nginx:
image: nginx:latest
publish_all: true
mem_min: 50m
host: host1
plugins:
- !plugin
id: 0H1Nk
restart: true
lifecycle: on_create, post_scale_out:dotnet, post_scale_in:dotnet
View .NET Connecting to MS SQL Server
dotnet:
image: dchq/dotnet-names-directory:latest
publish_all: true
#ports:
# - 5000:5000
host: host1
mem_min: 200m
environment:
- database_driverClassName=mssql
- database_url=Server=tcp:dchq-sql-server.database.windows.net,1433;Initial Catalog=NameDirectory;Persist Security Info=False;User ID={your_username};Password={your_password};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;
View 3-Tier .NET (Apache HTTP-.NET-PostgreSQL)
http-lb:
image: httpd:latest
publish_all: true
mem_min: 50m
host: host1
plugins:
- !plugin
id: uazUi
restart: true
lifecycle: on_create, post_scale_out:dotnet, post_scale_in:dotnet
View 3-Tier .NET (Nginx-.NET-PostgreSQL)
nginx:
image: nginx:latest
publish_all: true
mem_min: 50m
host: host1
plugins:
- !plugin
id: 0H1Nk
restart: true
lifecycle: on_create, post_scale_out:dotnet, post_scale_in:dotnet
View 2-Tier .NET with PostgreSQL
dotnet:
image: dchq/dotnet-names-directory:latest
publish_all: true
#ports:
# - 5000:5000
host: host1
mem_min: 200m
environment:
- database_driverClassName=postgres
- database_url=Host={{postgres | container_private_ip}};Database={{postgres | POSTGRES_DB}};Username={{postgres | POSTGRES_USER}};Password={{postgres | POSTGRES_PASSWORD}}
You can’t perform that action at this time.