Giter Site home page Giter Site logo

Comments (3)

edsu7 avatar edsu7 commented on August 12, 2024

Investigation summary:

  • will have to change a lot of files namely nextflow.config and potentially main.nf per wfpm module
  • Two scenarios A) and B)
  • have to add profiles to nextflow.config, e.g.
  • B) is more work but technically keeps in line with how code has been organized
profiles {
	docker {
    	docker.enabled = true
        singularity.enabled = false
    	runOptions = '-u \$(id -u):\$(id -g)'
	}

	singularity {
    	docker.enabled = false
        singularity.enabled = true
        singularity.cacheDir = "~/.singularity/cache"
	}
}

A) Can add process.container to either nextflow.config:

profiles {
   singularity {
   process.container = 'docker://quay.io/biocontainers/multiqc:1.3--py35_2'
   }
}

B) Or define in main.nf

### Append and inform singularity to pull from docker
if (workflow.profile!='docker'){
  params.container='docker://'
} else {
  params.container = ""
}

### Restructure container string
process payloadJsonToTsvs {
  container "${params.container}${container[params.container_registry ?: default_container_registry]}:${params.container_version ?: version}" 
  publishDir "${params.publish_dir}/${task.process.replaceAll(':', '_')}", mode: "copy", enabled: params.publish_dir ? true : false
  errorStrategy 'terminate'
  cpus params.cpus
  memory "${params.mem} GB"

Modules to change:

github.com/icgc-argo-workflows/data-processing-utility-tools/[email protected]
github.com/icgc-argo-workflows/data-processing-utility-tools/[email protected]
github.com/icgc-argo-workflows/data-processing-utility-tools/[email protected]
github.com/icgc-argo-workflows/dna-seq-processing-tools/[email protected]
github.com/icgc-argo/argo-data-submission/[email protected]
github.com/icgc-argo/argo-data-submission/[email protected]
github.com/icgc-argo/argo-data-submission/[email protected]
github.com/icgc-argo/argo-data-submission/[email protected]
github.com/icgc-argo/argo-data-submission/[email protected]
github.com/icgc-argo/argo-data-submission/[email protected]
github.com/icgc-argo/argo-data-submission/[email protected]
github.com/icgc-argo/nextflow-data-processing-utility-tools/[email protected]

from argo-data-submission.

edsu7 avatar edsu7 commented on August 12, 2024

Linda started a PR, scong-score-wf step not working. Will need to investigate.

from argo-data-submission.

edsu7 avatar edsu7 commented on August 12, 2024

Error found. It looks like score-client is trying to write /score-client/logs within the container without appropriate permissions. See below to allow for log writing.

  docker {
    docker.enabled = true
    singularity.enabled = false
    docker.runOptions = '-u \$(id -u):\$(id -g)'
	}
    singularity {
    docker.enabled = false
    singularity.enabled = true
    singularity.autoMounts = true
    singularity.engineOptions = '-s'
    singularity.runOptions = '--writable'
	}

Side note - I had validate-seqtools fail once me because it detected a newer version (pulled the latest image which is running the latest seq-tools version...)

from argo-data-submission.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.