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

Dockerfile: verify the dependencies for the binaries #510

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

derekbit
Copy link
Member

@derekbit derekbit commented Jun 7, 2024

Which issue(s) this PR fixes:

Issue longhorn/longhorn#8063

What this PR does / why we need it:

Special notes for your reviewer:

Additional documentation or context

Longhorn 8063

Signed-off-by: Derek Su <derek.su@suse.com>

RUN ldconfig

COPY package/bin/longhorn-instance-manager /usr/local/bin/
COPY package/instance-manager /usr/local/bin/

# Verify the dependencies for the binaries
RUN ldd /usr/local/bin/* /usr/local/sbin/* /usr/sbin/* | grep "not found" && exit 1 || true
Copy link
Member

Choose a reason for hiding this comment

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

It's better to have grep -i for case-insensitive filtering.

@innobead innobead enabled auto-merge (rebase) June 7, 2024 08:22
@innobead innobead disabled auto-merge June 7, 2024 08:33
@innobead innobead merged commit b88bfcf into longhorn:master Jun 7, 2024
10 checks passed
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