Skip to content

updated for apptainer usage to suppress info warning in start#31

Open
aprozo wants to merge 3 commits into
mainfrom
fix/apptainer-bindpath-warning
Open

updated for apptainer usage to suppress info warning in start#31
aprozo wants to merge 3 commits into
mainfrom
fix/apptainer-bindpath-warning

Conversation

@aprozo

@aprozo aprozo commented Apr 28, 2026

Copy link
Copy Markdown

No more

INFO:    Environment variable SINGULARITY_BINDPATH is set, but APPTAINER_BINDPATH is preferred

when entering the container. It consumes my tokens each time i use it 😅

Briefly, what does this PR introduce? Please link to any relevant presentations or discussions.

What is the urgency of this PR?

  • High (please describe reason below)
  • Medium
  • Low

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue #__)
  • Optimization (issue #__)
  • Updated documentation
  • other: __

@netlify

netlify Bot commented Apr 28, 2026

Copy link
Copy Markdown

Deploy Preview for kaleidoscopic-syrniki-0cfb8a failed.

Name Link
🔨 Latest commit 97e291e
🔍 Latest deploy log https://app.netlify.com/projects/kaleidoscopic-syrniki-0cfb8a/deploys/69f064b3541d5e00087aeaa2

@aprozo

aprozo commented Apr 28, 2026

Copy link
Copy Markdown
Author

@veprbl could you please confirm?

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Singularity-based launcher generation to support Apptainer by preferring APPTAINER_BINDPATH and avoiding Apptainer’s “SINGULARITY_BINDPATH is preferred” startup warning.

Changes:

  • Initialize BINDPATH from APPTAINER_BINDPATH (falling back to SINGULARITY_BINDPATH).
  • In the generated eic-shell launcher, detect Apptainer via --version and export APPTAINER_BINDPATH (unsetting SINGULARITY_BINDPATH) to suppress the warning.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread install.sh Outdated
Comment thread install.sh
Comment on lines 306 to +312
export EIC_SHELL_PREFIX=$PREFIX/local
export SINGULARITY_BINDPATH=$BINDPATH
if \${SINGULARITY:-$SINGULARITY} --version 2>&1 | grep -qi apptainer; then
export APPTAINER_BINDPATH=$BINDPATH
unset SINGULARITY_BINDPATH
else
export SINGULARITY_BINDPATH=$BINDPATH
fi

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot apply changes based on this feedback

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the help text in commit 97e291e to document both APPTAINER_BINDPATH and SINGULARITY_BINDPATH, and added a note explaining that APPTAINER_BINDPATH is used (and SINGULARITY_BINDPATH is unset) when Apptainer is detected.

good catch

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…SINGULARITY_BINDPATH)

Agent-Logs-Url: https://github.com/eic/eic-shell/sessions/0792ffc2-1bec-405e-b651-10b9bc85efaf

Co-authored-by: aprozo <33087030+aprozo@users.noreply.github.com>

@veprbl veprbl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wdconinc

Copy link
Copy Markdown
Contributor

Thansk. Please first search for existing prs before opening new ones: #1

We have lots of stuff hanging in review purgatory all over the place. Adding duplicates doesn't really help with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants