siddiqsoft.runhost

Docker entrypoint host for starting windows service


Keywords
entrypoint, docker, nt-service, windows, native, nativepackage, cpp
License
BSD-3-Clause
Install
Install-Package siddiqsoft.runhost -Version 1.1.1

Documentation

runhost

Copyright © 2021, Siddiq Software LLC

CodeQL Build Status

Objective

Host for launching windows service for docker on windows server

Usage

runhost.exe "name of service"

Attempting to start `name of service`..
Waiting for signal (or hit `q` to quit)..
  • There is no check for service name validity.
  • There is no check for service startup status.
  • There is no error checking or recovery.
  • The purpose is to allow for handling/intercept of SIGINT, SIGTERM, SIGKILL signals and return code accordingly.

In Dockerfile

ENTRYPOINT ["runhost.exe", "name of service"]

NOTE
Windows Server Containers do not support interception of SIGTERM or SIGKILL as of this version.

Where to get it

  • Build it yourself (current support requires Visual Studio 2019)
  • Get the nuget packages; it will install to your project directory under runhost with x64 and x86/Win32 binaries.