Skip to content

Create a prebuilt plugins Dockerfile #17583

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

Merged
merged 4 commits into from
May 13, 2025

Conversation

chainchad
Copy link
Collaborator

@chainchad chainchad commented May 5, 2025

This will allow other plugin repos like e.g. chainlink-aptos to run this Dockerfile in their CI and copy in pre-built plugin binaries and libs into a newly built Chainlink node image for their integration testing.

Relevant TON PR using this shared Dockerfile: https://github.com/smartcontractkit/chainlink-ton/pull/7 (loc ref)

@chainchad chainchad requested a review from krebernisak May 5, 2025 19:38
@chainchad chainchad marked this pull request as ready for review May 5, 2025 19:51
@chainchad chainchad requested review from a team as code owners May 5, 2025 19:51
@chainchad chainchad requested a review from cedric-cordenier May 5, 2025 19:51
@sebawo sebawo requested a review from Copilot May 6, 2025 14:08
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

Files not reviewed (1)
  • plugins/chainlink.prebuilt.Dockerfile: Language not supported

erikburt
erikburt previously approved these changes May 6, 2025
ARG PKG_PATH=./build

# Copy/override any (optional) additional shared libraries.
COPY ${PKG_PATH}/li[b] /usr/lib/
Copy link
Contributor

Choose a reason for hiding this comment

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

Are the square brackets some kind of well known hack?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, added a comment to clarify this in 4291268.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's a "hack" to make lib COPY optional (don't fail if ${PKG_PATH}/lib doesn't exist), suggested here: https://stackoverflow.com/a/76040555

@chainchad chainchad changed the title Create a pre-built plugins Dockerfile Create a prebuilt plugins Dockerfile May 12, 2025
Copy link
Contributor

@krebernisak krebernisak left a comment

Choose a reason for hiding this comment

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

LGTM!

@chainchad chainchad requested a review from erikburt May 12, 2025 19:24
@chainchad chainchad enabled auto-merge May 12, 2025 19:25
@cl-sonarqube-production
Copy link

Quality Gate failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarQube

@chainchad chainchad added this pull request to the merge queue May 12, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 12, 2025
@chainchad chainchad added this pull request to the merge queue May 13, 2025
Merged via the queue into develop with commit aa59a44 May 13, 2025
133 of 136 checks passed
@chainchad chainchad deleted the dx-491/dockerfile-external-plugins branch May 13, 2025 03:01
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.

4 participants