sevensolutions / nomad-iis

🧩 A TaskDriver plugin for HashiCorp Nomad to run workloads on Microsoft IIS.

Home Page:https://nomad-iis.sevensolutions.cc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HashiCorp Nomad IIS Task Driver

Build Release License

Nomad IIS Logo

A task driver for HashiCorp Nomad to run web-applications in IIS on Windows machines. Unlike most other Nomad task drivers, this one is written in the C# language using ASP.NET 8. It uses the Microsoft.Web.Administration-API to communicate with IIS. Feel free to use it as-is or as a reference implementation for your own C#-based Nomad-plugins.

Note

This document always represents the latest version, which may not have been released yet.
Therefore, some features may not be available currently but will be available soon. You can use the GIT-Tags to check individual versions.

πŸŽ‰ Features

Feature Status Details
Single Web App per Nomad Task βœ” The Task Driver creates an IIS Application Pool and Website for every Nomad Task in the job specification.
Multiple Applications βœ” Support for multiple sub-applications below the website.
Virtual Directories βœ” Support for multiple virtual directories below an application.
HTTP Bindings βœ”
HTTPS Bindings βœ” Details
Environment Variables βœ” Details
Resource Statistics βœ”
Logging βœ” Experimental UDP logging. See GH-6 for details.
Signals βœ” Details
Exec (Shell Access) ❌ I'am playing around a little bit but don't want to give you hope :/. See GH-15 for status.
Filesystem Isolation πŸ”Ά Details
Nomad Networking ❌
Management API βœ” Nomad IIS provides a very powerfull Management API with functionalities like taking a local screenshot or creating a process dump.

πŸ“š Documentation

Please see the full documentation HERE.

πŸ›  How to Compile

Run the setup command to download the nomad binary.

.\setup.ps1

Build the project by running the following command:

cd src
dotnet build

Of course you can also compile with Visual Studio :)

πŸ› How to Debug locally

There is a launch-profile to run nomad in dev-mode which automatically loads the driver plugin. Open Visual Studio, select the Nomad (Dev) launch profile and press F5.

Note: To debug the driver itself, you need to attach the debugger to the nomad_iis.exe process manually.

🎁 How to build Release version

Run the Release.pubxml or ReleaseWithMgmtApi.pubxml publish profile from Visual Studio. This will create a single binary exe called nomad_iis.exe.

🚧 TODOs and Known Issues

Check the Open Issues here.

β˜• Support

I put a lot of ❀️ and effort into this project and i want to make it the best IIS driver for Nomad. Every contribution helps me to improve it, fix bugs and develop new features. Please also dont forget to β˜… the repo. Thank You!

About

🧩 A TaskDriver plugin for HashiCorp Nomad to run workloads on Microsoft IIS.

https://nomad-iis.sevensolutions.cc/

License:MIT License


Languages

Language:C# 92.1%Language:TypeScript 3.4%Language:PowerShell 1.7%Language:HCL 0.9%Language:CSS 0.9%Language:Shell 0.8%Language:JavaScript 0.1%