diff --git a/nextflow.config b/nextflow.config index 3770b88..0b444fa 100755 --- a/nextflow.config +++ b/nextflow.config @@ -1,11 +1,47 @@ -docker { - enabled = true - temp = 'auto' -} - aws { client { endpoint = 'https://s3.cluster.omic.ai' s3PathStyleAccess = true } } + +profiles { + standard { + docker { + enabled = true + temp = 'auto' + } + } + + k8s { + process { + executor = 'k8s' + } + docker { + enabled = true + } + k8s { + storageClaimName = 'eureka-pvc' + storageMountPath = '/omic/eureka' + namespace = 'nextflow' + serviceAccount = 'nextflow' + } + } + + k8s_gpu { + process { + executor = 'k8s' + pod = [[nodeSelector: 'nvidia.com/gpu.present=true']] + accelerator = [request: 1, type: 'nvidia.com/gpu'] + } + docker { + enabled = true + } + k8s { + storageClaimName = 'eureka-pvc' + storageMountPath = '/omic/eureka' + namespace = 'nextflow' + serviceAccount = 'nextflow' + } + } +}