use of com.hartwig.platinum.kubernetes.ProcessRunner in project platinum by hartwigmedical.
the class PlatinumMain method call.
@Override
public Integer call() {
try {
PlatinumConfiguration configuration = addRegionAndProject(PlatinumConfiguration.from(inputJson));
Validation.apply(runName, configuration);
final HmfApi api = HmfApi.create(HmfApi.PRODUCTION);
new Platinum(runName, inputJson, StorageOptions.newBuilder().setProjectId(configuration.gcp().projectOrThrow()).build().getService(), IamProvider.get(), ResourceManagerProvider.get(), new KubernetesEngine(ContainerProvider.get(), new ProcessRunner(), configuration), configuration, new ApiRerun(api.runs(), api.sets(), api.samples(), configuration.outputBucket().get(), "5.28.2")).run();
return 0;
} catch (Exception e) {
LOGGER.error("Unexpected exception", e);
return 1;
}
}
Aggregations