Closed rlancaster96 closed 5 months ago
It looks like solving this issue can't be done by managing environmental variables in the Dockerfile. "This software is a Java executable .jar file; thus, it is not possible to add to the PATH environment variable." This issue is commonly solved by setting an environmental variable, eg $TRIMMOMATIC when running trimmomatic to point to the location of the .jar file.
Solution: I modified the nextflow script call for trimmomatic and the issue was solved.
trimmomatic
changed to java -jar /bin/trimmomatic.jar
.
This means the script will be executable with singularity but may no longer be executable in a conda environment.
Command run:
Expected behavior: Run nextflow with singularity to perform the trimmomatic step.
Actual behavior:
Output:
Tried adding environmental variable to Dockerfile, error persits. Path determined by running a whereis when running the singularity container.
Dockerfile contents