Skip to content

Commit aa59a44

Browse files
authored
Create a prebuilt plugins Dockerfile (#17583)
* Create a pre-built plugins Dockerfile * Add newline to Dockerfile * Use one arg for bin/lib copy path * Include comment for optional lib copying
1 parent 497772c commit aa59a44

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,7 @@ vendor/*
109109
contracts/lcov.info
110110
contracts/out/
111111
/cache
112+
113+
# Used by plugins/chianlink.prebuilt.Dockerfile
114+
bin/
115+
lib/

plugins/chainlink.prebuilt.Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
##
2+
# Takes Chainlink core as a base image and layers in private plugins.
3+
##
4+
ARG BASE_IMAGE=public.ecr.aws/chainlink/chainlink:v2.23.0-plugins
5+
6+
##
7+
# Final image
8+
##
9+
FROM ${BASE_IMAGE} AS final
10+
# This directory should contain a bin/ subdir with the plugins and an optional lib/ subdir with shared libraries.
11+
ARG PKG_PATH=./build
12+
13+
# Copy/override any (optional) additional shared libraries.
14+
# Square brackets in "li[b]" make this path optional - Docker build won't fail
15+
# if the directory doesn't exist.
16+
COPY ${PKG_PATH}/li[b] /usr/lib/
17+
# Copy/override plugins.
18+
COPY ${PKG_PATH}/bin /usr/local/bin

0 commit comments

Comments
 (0)