Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to override container entrypoint in kubernetes with fusion and wave enabled #5764

Open
oqadiSAK opened this issue Feb 7, 2025 · 0 comments

Comments

@oqadiSAK
Copy link

oqadiSAK commented Feb 7, 2025

Bug report

We are aware that Nextflow expects images to have /bin/bash ENTRYPOINT by definition. But we are able to override our images entrypoint to fit /bin/bash in local executor environment. Can't achieve this in k8s executor.

Expected behavior and actual behavior

Container entrypoint should be configurable when using Nextflow with k8s, Fusion, and Wave configurations.
Currently, all attempted methods to override container entrypoint fail in this environment combination.

Steps to reproduce the problem

  1. Create a simple Nextflow setup with Fusion and Wave:
wave {
    enabled = true
    endpoint = '${WAVE_URL}'
}

fusion {
    enabled = true
}

workDir = '${S3_WORKDIR}'

k8s {
    namespace = 'nextflow'
    serviceAccount = 'nextflow-sa'
}

process test_process {
    container '${CONTAINER}'
    script:
    """
    echo "hello"
    """
}

workflow {
    test_process()
}
  1. Attempted override methods (all failed):
# Method 1: Process containerOptions
process {
    containerOptions '--entrypoint=""'
}

# Method 2: Configuration settings
k8s {
    entrypointOverride = true
}

docker {
    entrypointOverride = true
}

process {
    entrypointOverride = true
}

# Method 3: Environment variable
export NXF_CONTAINER_ENTRYPOINT_OVERRIDE=true

Reference: Entrypoint override implementation in source code:

Program output

No error messages are shown - the entrypoint override simply does not take effect when using k8s, Fusion, and Wave together.

Environment

  • Nextflow version: 24.10.4 build 5934
  • Java version: openjdk 21-internal 2023-09-19
  • Operating system: Ubuntu 24.04
  • Bash version: 5.1.16(1)-release (x86_64-pc-linux-gnu)

Additional context

  • The entrypoint override works correctly with local executor using containerOptions in the process definition
  • We need this functionality to run containers that have entrypoints different from /bin/bash
  • There is no clear documentation for entrypoint override configuration in k8s
@oqadiSAK oqadiSAK changed the title Unable to Override Container Entrypoint in Kubernetes with Fusion and Wave Enabled Unable to override container entrypoint in kubernetes with fusion and wave enabled Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants