Skip to content

Console Deployment

Run your Kittox application as a headless console server, ideal for Docker containers or environments without a desktop.

When to use

  • Docker containers
  • Headless Windows Server Core
  • CI/CD test environments
  • Linux via Wine (experimental)

The .dpr file

The console application requires a separate .dpr:

pascal
program MyAppConsole;
uses
  Kitto.Console.Start,
  Controllers, Rules, UseKitto;
begin
  TKConsoleStart.Start;
end.

Server configuration

Same Config.yaml as Standalone:

yaml
Server:
  Port: 8080
  BindAddress: ''
  ThreadPoolSize: 20

Running

batch
MyAppConsole.exe

The server starts and listens on the configured port. Press Ctrl+C to stop.

To run with a custom configuration file:

batch
MyAppConsole.exe -c ConfigProduction.yaml

Docker example

dockerfile
FROM mcr.microsoft.com/windows/servercore:ltsc2022

COPY MyAppConsole.exe C:/app/
COPY Home/ C:/app/Home/

WORKDIR C:/app
EXPOSE 8080

CMD ["MyAppConsole.exe"]

See also

Released under Apache License, Version 2.0.