Skip to content

tarikub/DockerHostedWCF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of Docker Hosted WCF Application

A downlodable sample code for WCF services that are hosted on Docker. Inspired by msdn article - https://blogs.msdn.microsoft.com/webdev/2017/02/20/lets-try-wcf-self-hosted-services-in-a-container/.

Getting Started

Hosting WCF on Docker

  • Install Docker CE
  • Switch containers to Windows
  • Run "docker pull microsoft/windowsservercore"
  • Clone this git hub repo
  • Build the solution DockerHostedWCF (this will copy all the files needed for the Docker in Publish\Bin folder)
  • From "Publish" folder using cmd run [docker build -t wcfhost:latest -t wcfhost:1 .]

Running WCF App inside Docker container

Running client application that consumes Docker hosted WCF service

  • In the app.config file on the client application (i.e. WCFClient) update end point address using the ip address from the WCF docker container
  • Run client application

More information: https://blogs.msdn.microsoft.com/webdev/2017/02/20/lets-try-wcf-self-hosted-services-in-a-container/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages