Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix parsing of docker-compose output.
Newer versions of docker-compose (at least 1.25.0-rc4) adjust the output
based on the number of columns available in the terminal. This
interferes with parsing of the output. This is fixed by setting the
`COLUMNS` environment variable to an artificially large value.
  • Loading branch information
GrahamDennis committed Dec 16, 2019
commit c5da996dac6bc9514ea2c39be5add96d949c8004
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ public DockerMachine build() {
String hostIp = new RemoteHostIpResolver().resolveIp(dockerHost);

Map<String, String> environment = ImmutableMap.<String, String>builder()
// 2019-12-17: newer docker-compose adjusts its output based on the number of columns available
// in the terminal. This interferes with parsing of the output of docker-compose, so "COLUMNS" is
// set to an artificially large value.
.put("COLUMNS", "10000")
.putAll(dockerEnvironment)
.putAll(additionalEnvironment)
.build();
Expand Down