Upload files to "/"
This commit is contained in:
18
main.nf
Normal file
18
main.nf
Normal file
@@ -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()
|
||||
}
|
||||
35
nextflow.config
Normal file
35
nextflow.config
Normal file
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user