-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conversation
There was a problem hiding this 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
ARG PKG_PATH=./build | ||
|
||
# Copy/override any (optional) additional shared libraries. | ||
COPY ${PKG_PATH}/li[b] /usr/lib/ |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
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)