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

oci: support for SCIF, incl. --app #2348

Merged

Conversation

preminger
Copy link
Contributor

Description of the Pull Request (PR):

Adds support for SCIF apps in OCI-mode using --app command-line option.

NOTE: This feature assumes a Docker-style SCIF container built with the scif executable as CMD or ENTRYPOINT, as per the instructions in the SCIF tutorial (archived here).

This fixes or addresses the following GitHub issues:

@preminger preminger changed the title oci: support --app for SCIF appname WIP: oci: support --app for SCIF appname Nov 10, 2023
@preminger preminger force-pushed the 1470-support-app-in-oci-mode-scif-in-oci branch 6 times, most recently from c4299ad to 6323604 Compare November 14, 2023 15:42
@preminger preminger changed the title WIP: oci: support --app for SCIF appname oci: support for SCIF, incl. --app Nov 14, 2023
@preminger preminger marked this pull request as ready for review November 14, 2023 16:08
Copy link
Member

@dtrudg dtrudg left a comment

Choose a reason for hiding this comment

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

A couple of comments left.

More generally, I don't think that having inspect --oci dump out SCIF specific output is right.

  • I think inspect --oci --app xxx output is fine to show SCIF app xxxx
  • I think that inspect --oci --list-apps showing all SCIF apps would be fine.
  • I think that a general inspect --oci should show OCI config for any OCI-SIF image... but that is outside of the scope here.

It's probably best to pull out the inspect stuff here, and then...

  1. Implement the general OCI-SIF inspect.
  2. Add the SCIF specific piece.

CHANGELOG.md Outdated Show resolved Hide resolved
cmd/internal/cli/inspect.go Outdated Show resolved Hide resolved
internal/pkg/runtime/launcher/oci/process_linux.go Outdated Show resolved Hide resolved
@preminger preminger force-pushed the 1470-support-app-in-oci-mode-scif-in-oci branch from 2224ee5 to 920c8a9 Compare November 14, 2023 16:40
@preminger preminger force-pushed the 1470-support-app-in-oci-mode-scif-in-oci branch from 920c8a9 to cd9d098 Compare November 14, 2023 16:45
@preminger
Copy link
Contributor Author

Tentative implementation of singularity inspect --oci for Docker-style SCIF containers has been dropped from this PR, and can be found here: #2360

@preminger preminger merged commit e5d8644 into sylabs:main Nov 14, 2023
1 check passed
@vsoch
Copy link
Contributor

vsoch commented Nov 15, 2023

Just saw this in my Twitter DMs - sorry I missed the earlier discussion. Super cool and nice job @preminger !

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.

Support --app in --oci mode (SCIF in OCI)
3 participants