diff options
author | Malfurious <m@lfurio.us> | 2023-10-27 21:25:42 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2023-11-15 23:11:08 -0500 |
commit | 79bf10217325dcad4a974aa2c34207f64863f96d (patch) | |
tree | 3d782b89eb88d0c3133d5e6fe9dd8af8b151ad1c /dmt | |
parent | 906a87dd480c490299d1788c6ce11b81e977acbf (diff) | |
download | cychedelic-79bf10217325dcad4a974aa2c34207f64863f96d.tar.gz cychedelic-79bf10217325dcad4a974aa2c34207f64863f96d.zip |
dmt: Add service container
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>
Diffstat (limited to 'dmt')
-rw-r--r-- | dmt/Dockerfile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dmt/Dockerfile b/dmt/Dockerfile new file mode 100644 index 0000000..6d53838 --- /dev/null +++ b/dmt/Dockerfile @@ -0,0 +1,19 @@ +FROM alpine + +RUN apk --no-cache upgrade +RUN apk --no-cache add \ + bash \ + docker-cli \ + docker-compose \ + git \ + go + +WORKDIR /app +ENV PATH="${PATH}:/app" +ENV GOPATH="/usr/local" +COPY . . + +RUN go install github.com/uriel/cgd@latest + +EXPOSE 80 +CMD ["cgd", "-a", ":80", "-c", "dmt"] |