palantir/docker-compose-rule

`DockerCompose.exec()` that supports stdin

nedtwigg opened this issue · 0 comments

The pg_restore command can take a file argument, or you can pass the file contents over stdin. In order to pass a file, you have to deal with mounting, but over stdin you don't. Right now there's no way to pass content to stdin, and it would be useful if there was.

Maybe add an Optional<byte[]> stdin parameter which would be written to the process stdin?

@Value.Immutable
public abstract class DockerComposeExecOption {
@Value.Parameter
public abstract List<String> options();