Skip to content

Commit

Permalink
Remove dockerize launcher classpath file (#4191) [ci fast]
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Sherman <[email protected]>
  • Loading branch information
bentsherman authored Aug 15, 2023
1 parent 4d91862 commit 2bae519
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions nextflow
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,8 @@ EOF
}

# checked if a cached classpath file exists and it newer that the nextflow boot jar file
if [[ -f /.nextflow/dockerized ]]; then
LAUNCH_FILE=/.nextflow/launch-classpath
else
LAUNCH_FILE="${NXF_LAUNCHER}/classpath-$(env_md5)"
fi
LAUNCH_FILE="${NXF_LAUNCHER}/classpath-$(env_md5)"

if [ -s "$LAUNCH_FILE" ] && [ "$LAUNCH_FILE" -nt "$NXF_BIN" ]; then
declare -a launcher="($(cat "$LAUNCH_FILE"))"
else
Expand Down
2 changes: 1 addition & 1 deletion packing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ task dockerPack(type: Exec, dependsOn: ['packOne']) {
COPY entry.sh /usr/local/bin/entry.sh
COPY dist/docker /usr/local/bin/docker
ENV NXF_HOME=/.nextflow
RUN touch /.nextflow/dockerized && rm -rf /.nextflow/launch-classpath
RUN touch /.nextflow/dockerized
RUN chmod +x /usr/local/bin/nextflow /usr/local/bin/entry.sh
RUN nextflow info
ENTRYPOINT ["/usr/local/bin/entry.sh"]
Expand Down

0 comments on commit 2bae519

Please sign in to comment.