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

Fix RVPS binary building & push image every merge to main #277

Merged
merged 3 commits into from
Jan 4, 2024

Conversation

Xynnn007
Copy link
Member

@Xynnn007 Xynnn007 commented Jan 4, 2024

This PR fixes some bugs for RVPS

  1. Avoid duplicated launch parameter flag to prevent the process from panic
  2. Fix the Dockerfile LABEL and error information for RVPS.
  3. Publish the RVPS image every merge to main so that we can test the KBS cluster in time.

storage and socket parameter use a common short flag `-c` so the binary
will panic when running.

Signed-off-by: Xynnn007 <[email protected]>
@Xynnn007 Xynnn007 requested a review from sameo as a code owner January 4, 2024 02:31
Copy link
Member

@jialez0 jialez0 left a comment

Choose a reason for hiding this comment

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

LGTM. Just a little question.

@@ -19,7 +19,7 @@ const DEFAULT_STORAGE: &str = "LocalFs";
#[command(author, version, about, long_about = None)]
pub struct Cli {
/// Underlying storage engine that RVPS uses.
#[arg(short, long, default_value = DEFAULT_STORAGE)]
#[arg(short = 'c', long, default_value = DEFAULT_STORAGE)]
Copy link
Member

Choose a reason for hiding this comment

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

Why use -c for short instead of -s?

Copy link
Member Author

Choose a reason for hiding this comment

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

By default both storage and socket will use the same short flag -s atomatically, which will make the rvps process panic when launched. This is why a different short flag is defined here.

@jialez0 jialez0 merged commit eeee12b into confidential-containers:main Jan 4, 2024
7 checks passed
@Xynnn007 Xynnn007 deleted the fix-rvps branch January 4, 2024 03:11
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.

2 participants