From 6361238ad55af761336bfe6c8d6a57851be3c3cd Mon Sep 17 00:00:00 2001 From: Kevin Date: Mon, 18 May 2026 21:34:38 +0200 Subject: [PATCH] Upload files to "/" --- main.nf | 18 ++++++++++++++++++ nextflow.config | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 main.nf create mode 100644 nextflow.config diff --git a/main.nf b/main.nf new file mode 100644 index 0000000..e88c16d --- /dev/null +++ b/main.nf @@ -0,0 +1,18 @@ +nextflow.enable.dsl = 2 + +process hello { + container 'ubuntu:22.04' + + output: + path 'hello.txt' + + script: + """ + echo "Hello, from kubernetes" > hello.txt + hostname >> hello.txt + """ +} + +workflow { + hello() +} diff --git a/nextflow.config b/nextflow.config new file mode 100644 index 0000000..32813ef --- /dev/null +++ b/nextflow.config @@ -0,0 +1,35 @@ +plugins { + id 'nf-k8s' +} + +workDir = '/workspace' + +process { + executor = 'k8s' + container = 'ubuntu:22.04' + + pod = [ + imagePullPolicy: 'IfNotPresent' + ] +} + +k8s { + namespace = 'default' + + storageClaimName = 'my-claim' + storageMountPath = '/workspace' + launchDir = '/workspace/launch' + projectDir = '/workspace/projects' + cleanup = false + + nextflowImage = 'gitea.kleine.eulenhexe.de/kevin/ma/nextflow-dvfs:0.1' + imagePullPolicy = 'IfNotPresent' + + nodeInit { + enabled = false + image = 'gitea.kleine.eulenhexe.de/kevin/ma/dvfs-agent:0.1' + command = ['/bin/agent'] + wait = 'Running' + cleanup = false + } +}