summaryrefslogtreecommitdiffstats
path: root/dmt (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-11-15dmt: Implement API endpoint /api/job/{jobnum}Malfurious2-1/+35
This returns all details related to the requested job number as well as a tail of the job log file. If `jobnum` is omited, details of the latest job are returned. Signed-off-by: Malfurious <m@lfurio.us>
2023-11-15dmt: Implement API endpoint /api/statusMalfurious2-0/+37
This returns high-level information describing the current state of the system. The intent of the `version` field is primarily to act as a "page should be reloaded" indicator to the front-end javascript code. This would inform the client to reload (possibly) new markup or script whenever the version field changes. This field could return an accurate version spec of cychedelic or DMT, however just returns a random string at the moment which is tied to the DMT docker image build. Signed-off-by: Malfurious <m@lfurio.us>
2023-11-15dmt: Add server-side templating functionalityMalfurious1-0/+55
This file is taken from the "werc" web "anti-framework" project, which is made available as Public Domain as well as MIT code. It is an awk script that implements a simple templating markup syntax. When run on an input file, it translates the content into equivalent shell syntax which can then be executed to produce the desired result. Therefore, the script should be invoked as `template.awk FILE | bash`, and the output can be streamed to the client. An overview of the template syntax follows: Lines beginning with '%' (no leading whitespace allowed) are taken as shell commands. Inline %{ ... %} gives the inner content taken as a shell command. Inline %( ... %) gives the inner content taken as a shell expression (which is substituted). All other text is echoed as-is. Signed-off-by: Malfurious <m@lfurio.us>
2023-11-15dmt: Add service containerMalfurious1-0/+19
DMT (Display for Monitoring log Text) will be the HTTP monitoring interface for cychedelic. We mount the system data as readonly for this purpose. The Dockerfile is largely based on that of ACID for the moment, as I anticipate the same underlying packages. Also, the web service entry is written to be intended for use with the nginx-proxy reverse proxy. CGD is an extremely simple daemon used for serving a CGI script over HTTP. It is available as Public Domain / MIT code. DMT's entrypoint will be implemented as a CGI shell script. Signed-off-by: Malfurious <m@lfurio.us>