Search in sources :

Example 1 with PlatinumConfiguration

use of com.hartwig.platinum.config.PlatinumConfiguration 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;
    }
}
Also used : KubernetesEngine(com.hartwig.platinum.kubernetes.KubernetesEngine) PlatinumConfiguration(com.hartwig.platinum.config.PlatinumConfiguration) HmfApi(com.hartwig.api.HmfApi) ProcessRunner(com.hartwig.platinum.kubernetes.ProcessRunner)

Aggregations

HmfApi (com.hartwig.api.HmfApi)1 PlatinumConfiguration (com.hartwig.platinum.config.PlatinumConfiguration)1 KubernetesEngine (com.hartwig.platinum.kubernetes.KubernetesEngine)1 ProcessRunner (com.hartwig.platinum.kubernetes.ProcessRunner)1