shantanoo-desai / komponist

A Composer for your favorite IoT/ IIoT container stacks with Ansible + Jinja2 + Docker Compose v2
GNU Affero General Public License v3.0
25 stars 2 forks source link

[TUI] Dockerfile for standalone TUI #73

Closed shantanoo-desai closed 1 year ago

shantanoo-desai commented 1 year ago

Description

In order to avoid user installing yq and gum dependencies for file-generation / TUI rendering, provide a docker container where the script in #72 will be copied and the files generated can be copied to host from container via volume mounts. This will provide a decoupling of the TUI from the host.

Use a debian slim image as base image and add the gum and yq binaries via FROM as well as enable TERM xterm-256color for color rendering.

Use Github Container Registry to provide a read-to-pull image for end-users as opposed to letting them build the image locally.

Typical usage:

mkdir -p examples/customstack && examples/customstack
docker run -it --rm -v $(pwd):/usr/tui ghcr.io/shantanoo-desai/komponist-tui