Learning and testing base kit for the AHP platform. Demonstrates the minimal structure required for a kit: input resolution via KIT_INPUTS_FILE, logging to stdout and file, and writing output to /tmp/outputs/.
Reads two text files and concatenates them (in order) into a single output file.
Files are resolved from the directory pointed to by KIT_INPUTS_FILE.
| Environment variable | Default | Description |
|---|---|---|
KIT_INPUTS_FILE |
(required) | Path to the input directory |
INPUT_1_NAME |
(required) | Filename of the first input (injected by platform) |
INPUT_2_NAME |
(required) | Filename of the second input (injected by platform) |
A single file output.txt written to /tmp/outputs/, containing the content of input1 followed by the content of input2.
Written to /tmp/logs/text_files_merger.log and to stdout.
templates/ contains example inputs and the expected merged output:
templates/input1.txt— first inputtemplates/input2.txt— second inputtemplates/output.txt— expected result
# Install dependencies (none, but creates .venv)
uv sync
# Run with template inputs
KIT_INPUTS_FILE=templates INPUT_1_NAME=input1.txt INPUT_2_NAME=input2.txt \
uv run python text_merger/execute.py# Build
docker build -t text-files-merger .
# Run with template inputs mounted
docker run \
-e KIT_INPUTS_FILE=/inputs \
-e INPUT_1_NAME=input1.txt \
-e INPUT_2_NAME=input2.txt \
-v $(pwd)/templates:/inputs \
text-files-mergerThe merged output will be at /tmp/outputs/output.txt inside the container and the log at /tmp/logs/text_files_merger.log.