Skip to content

Fix TTY allocation causing missing output when backgrounding commands #1566

@coderabbitai

Description

@coderabbitai

Issue Description

When running CLP package commands in the background using &, no output is printed to the console. For example:

./sbin/compress.sh ~/samples/hive-24hr &

Root Cause

The docker compose run command overrides the tty and stdin_open options defined in service configurations (source), even when neither the --no-TTY nor the --interactive flag is specified. This means docker compose run automatically sets tty: true when it detects a TTY-capable terminal and always sets stdin_open: true, regardless of the values defined in docker-compose.yaml.

Proposed Solution

  1. Remove tty: true and stdin_open: true from tools/deployment/package/docker-compose.runtime.yaml to avoid confusion
  2. Add --no-TTY flag to all docker compose run commands in the sbin scripts

Context

Reported by @junhaoliao in PR #1512: #1512 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions