Git Product home page Git Product logo

fabrikamfiber's Introduction

FabrikamFiber

This project was originally started by Richard Hundhausen and distributed on CodePlex as an application for training users in Visual Studio and development practices.

I have archived it here since I frequently use it for examples rebuilding existing applications to run in containers.

Building this project

What's needed:

  • Windows 10 version 1803, Windows Server version 1803 or later
  • Visual Studio 2017 (any edition)
  • .Net Framework 4.7.2 SDK, ASP.Net Targeting Pack for Visual Studio
  • Docker

Steps to build

Find "Developer Command Prompt for VS 2017" on the Start menu or by searching for it. Once the command window is open, change to the directory with the source code, and run these steps.

rmdir /s /q MyCompany.Visitors.Web\bin\Release\Publish
msbuild FabrikamFiber.CallCenter.sln /t:clean /p:Configuration=Release
msbuild FabrikamFiber.CallCenter.sln /t:build /p:Configuration=Release /p:PublishProfile=FolderProfile /p:DeployOnBuild=true
cd FabrikamFiber.Web

docker build --no-cache -t ff .
docker run --rm -p 8080:80 -d ff

Note: When you want to update the Windows and .Net container layers later, update then run docker pull on the base image given in the Dockerfile, then run docker build again.

Kubernetes

What's needed

  • Kubernetes 1.10 or later cluster
  • At least 1 Linux amd64 node, and 1 Windows amd64 node
  • kubectl
  • The files at k8s/* in this repo

The latest step by step guide to deploying this on Azure at http://aka.ms/windowscontainers/kubernetes

Steps to deploy

This will create 2 deployments - one for web, one for the database, along with a shared secret.

Description Deployment Name Service
Web site behind Azure load balancer fabrikamfiber.web fabrikamfiberweb
SQL Server express database db db

All 4 can be deployed using these steps:

kubectl apply -n ff -f k8s/db-secret.yaml
kubectl apply -n ff -f k8s/db-mssql-linux.yaml
kubectl apply -n ff -f k8s/db-service.yaml
kubectl apply -n ff -f k8s/fabrikamfiber.web-deployment.yaml
kubectl apply -n ff -f k8s/fabrikamfiber.web-service.yaml

Other Resources

Step by Step - Getting Started & Azure Service Fabric

There's a great guide on how to use this to test building Docker containers and deploying them to Azure Service Fabric here.

If you want to try a different orchestrator, follow the steps through the first Test your container section, then pick from the next sections here.

fabrikamfiber's People

Contributors

craiglpeters avatar patricklang avatar

Watchers

James Cloos avatar  avatar

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.