Files
tai/docker-compose.yml
T

18 lines
929 B
YAML
Raw Normal View History

services:
tai-test:
build:
context: .
dockerfile: tests/docker/Dockerfile
command: ["python3", "tests/container.py", "--inside"]
# No volumes, no network restrictions, no persistence on purpose: this
# service exists to run the container-only test suite (see
# tests/container.py and tests/bashrc.py) inside a throwaway environment
# that it is safe to install a real ~/.bashrc hook into and start a real
# tmux session in. `docker compose run --rm tai-test` or
# `podman compose run --rm tai-test` both work; tests/container.py
# itself drives plain build/run directly (via tai.container_engine(),
# the same podman-then-docker detection the project's own sandbox
# feature already uses) so the automated path never depends on which
# compose implementation, if any, happens to be installed -- this file
# is for a human who wants to run the same thing by hand.