📁 pre-commit
Signed-off-by: stirlingbot[bot] <195170888+stirlingbot[bot]@users.noreply.github.com>
This commit is contained in:
@@ -57,7 +57,7 @@ public class RuntimePathConfig {
|
|||||||
this.pipelineDefaultWebUiConfigs = webUiConfigsPath;
|
this.pipelineDefaultWebUiConfigs = webUiConfigsPath;
|
||||||
|
|
||||||
boolean isDocker = isRunningInDocker();
|
boolean isDocker = isRunningInDocker();
|
||||||
|
|
||||||
// Initialize Operation paths
|
// Initialize Operation paths
|
||||||
String weasyPrintPath = isDocker ? "/opt/venv/bin/weasyprint" : "weasyprint";
|
String weasyPrintPath = isDocker ? "/opt/venv/bin/weasyprint" : "weasyprint";
|
||||||
String unoConvertPath = isDocker ? "/opt/venv/bin/unoconvert" : "unoconvert";
|
String unoConvertPath = isDocker ? "/opt/venv/bin/unoconvert" : "unoconvert";
|
||||||
@@ -78,9 +78,9 @@ public class RuntimePathConfig {
|
|||||||
this.weasyPrintPath = weasyPrintPath;
|
this.weasyPrintPath = weasyPrintPath;
|
||||||
this.unoConvertPath = unoConvertPath;
|
this.unoConvertPath = unoConvertPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isRunningInDocker() {
|
private boolean isRunningInDocker() {
|
||||||
return Files.exists(Paths.get("/.dockerenv"));
|
return Files.exists(Paths.get("/.dockerenv"));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ public class ConvertWebsiteToPdfTest {
|
|||||||
@Mock
|
@Mock
|
||||||
private RuntimePathConfig runtimePathConfig;
|
private RuntimePathConfig runtimePathConfig;
|
||||||
|
|
||||||
|
|
||||||
private ConvertWebsiteToPDF convertWebsiteToPDF;
|
private ConvertWebsiteToPDF convertWebsiteToPDF;
|
||||||
|
|
||||||
@BeforeEach
|
@BeforeEach
|
||||||
|
|||||||
Reference in New Issue
Block a user