Multistage Dockerfile build fails on Windows
tonvanbart opened this issue · comments
Ton van Bart commented
As reported by @hclbaur building using the multistage Dockerfile build does not work on Windows due to carriage return versus line feed issues. See #44 .
Example of an error:
#13 196.1 [ERROR] Tests run: 10, Failures: 5, Errors: 0, Skipped: 0, Time elapsed: 56.805 s <<< FAILURE! - in io.axual.ksml.KSMLTopologyGeneratorBasicTest
#13 196.1 [ERROR] parseAndCheckOuput{int}[1] Time elapsed: 55.643 s <<< FAILURE!
#13 196.1 java.lang.AssertionError:
#13 196.1
#13 196.1 Expected: is "Topologies:\r\n Sub-topology: 0\r\n Source: sensor_stream (topics: [ksml_sensordata_avro])\r\n --> for_each_001\r\n Processor: for_each_001 (stores: [])\r\n --> none\r\n <-- sensor_stream\r\n\r\n"
#13 196.1 but: was "Topologies:\n Sub-topology: 0\n Source: sensor_stream (topics: [ksml_sensordata_avro])\n --> for_each_001\n Processor: for_each_001 (stores: [])\n --> none\n <-- sensor_stream\n\n"
#13 196.1 at io.axual.ksml.KSMLTopologyGeneratorBasicTest.parseAndCheckOuput(KSMLTopologyGeneratorBasicTest.java:76)
hclbaur commented
Your fix in https://github.com/axual/ksml/tree/45-fix-test works fine.