Skip to content

Conversation

krebernisak
Copy link
Collaborator

@krebernisak krebernisak commented Sep 10, 2025

DOCKER_BUILDKIT=1 docker build . \
    -t smartcontract/chainlink-plugins-dev:v0.0.1-beta.1-chainlink-ton-bundle \
    -f ./scripts/build/chainlink.from-nix-builder.Dockerfile \
    --build-arg NIX_BUILD_PKG=chainlink-plugins-bundle

Inspect the image:

docker run -it --rm --entrypoint /bin/sh smartcontract/chainlink-plugins-dev:v0.0.1-beta.1-chainlink-ton-bundle
ls -la /usr/local/bin
total 44
dr-xr-xr-x 1 root root 4096 Sep 11 17:41 .
drwxr-xr-x 1 root root 4096 Sep 11 17:41 ..
lrwxrwxrwx 1 root root   85 Sep 11 17:41 chainlink-aptos -> /nix/store/8xxhjr5d6k8cdf02jix8asavd6cp322c-chainlink-aptos-1.0.0/bin/chainlink-aptos
lrwxrwxrwx 1 root root   87 Sep 11 17:41 chainlink-solana -> /nix/store/kysihgcll7fipp3854dzmb1p34xc0wyq-chainlink-solana-1.0.0/bin/chainlink-solana
lrwxrwxrwx 1 root root   81 Sep 11 17:41 chainlink-ton -> /nix/store/f4qxpncb8ijz4vjslvlvisdgp2l0hgi5-chainlink-ton-0.0.1/bin/chainlink-ton
-rwxr-xr-x 1 root root 1343 Sep 10 19:35 detect-plugins-prep-env-setup.sh
lrwxrwxrwx 1 root root   64 Sep 11 17:41 dlv -> /nix/store/r1sjf4lwl3iryx2r4fycyv7zwr85739l-delve-1.25.1/bin/dlv
lrwxrwxrwx 1 root root   68 Sep 11 17:41 dlv-dap -> /nix/store/r1sjf4lwl3iryx2r4fycyv7zwr85739l-delve-1.25.1/bin/dlv-dap
-rwxr-xr-x 1 root root  336 Sep 10 19:52 entrypoint-chainlink.sh
cat /etc/chainlink/env-setup.sh
# generated by detect-plugins-prep-env-setup.sh
# Each line exports CL_<PLUGIN>_CMD using parameter expansion so runtime -e can override:
#   export CL_FOO_CMD="${CL_FOO_CMD:-/usr/local/bin/chainlink-foo}"
export CL_APTOS_CMD="${CL_APTOS_CMD:-chainlink-aptos}"
export CL_SOLANA_CMD="${CL_SOLANA_CMD:-chainlink-solana}"
export CL_TON_CMD="${CL_TON_CMD:-chainlink-ton}"
ls -la /nix/store
total 56
drwxr-xr-x 14 root root 4096 Sep 11 17:41 .
drwxr-xr-x  3 root root 4096 Sep 11 17:41 ..
dr-xr-xr-x  3 root root 4096 Sep 11 17:41 0x15ps86zc4wbk03463m7dczav9xp72z-xgcc-14.3.0-libgcc
dr-xr-xr-x  6 root root 4096 Sep 11 17:41 2hcy8bvfswxsvsxq5s9bwibhivs25aif-glibc-2.40-66
dr-xr-xr-x  3 root root 4096 Sep 11 17:41 87pbspfhvv6ldyp7xp3p1xb479lk8nh7-libunistring-1.3
dr-xr-xr-x  4 root root 4096 Sep 11 17:41 8xxhjr5d6k8cdf02jix8asavd6cp322c-chainlink-aptos-1.0.0
dr-xr-xr-x  4 root root 4096 Sep 11 17:41 anixmx00k0fhjilpd9j927as20k8yq82-libidn2-2.3.8
dr-xr-xr-x  3 root root 4096 Sep 11 17:41 br1ja7az4rin2ap9p1da0zwkl4bhwfdw-tzdata-2025b
dr-xr-xr-x  4 root root 4096 Sep 11 17:41 f4qxpncb8ijz4vjslvlvisdgp2l0hgi5-chainlink-ton-0.0.1
dr-xr-xr-x  4 root root 4096 Sep 11 17:41 kysihgcll7fipp3854dzmb1p34xc0wyq-chainlink-solana-1.0.0
dr-xr-xr-x  4 root root 4096 Sep 11 17:41 qs3a9x0sfnk711lk6bd5xavkmkfaj20s-chainlink-plugins-bundle
dr-xr-xr-x  3 root root 4096 Sep 11 17:41 r1sjf4lwl3iryx2r4fycyv7zwr85739l-delve-1.25.1
dr-xr-xr-x  4 root root 4096 Sep 11 17:41 rq4h9ykca1jnsgfbnmc6x5qwz0zfr7p6-mailcap-2.1.54
dr-xr-xr-x  4 root root 4096 Sep 11 17:41 w6cy0kbvpicbdlp9xr0nc5ylqpqki295-iana-etc-20250505

@Copilot Copilot AI review requested due to automatic review settings September 10, 2025 17:59
@krebernisak krebernisak requested a review from a team as a code owner September 10, 2025 17:59
@krebernisak krebernisak marked this pull request as draft September 10, 2025 17:59
Copy link

👋 krebernisak, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

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.

Pull Request Overview

This PR adds a new Chainlink image builder Dockerfile specifically designed for testing purposes with plugin support. The Dockerfile creates a multi-stage build that compiles Go binaries with debugging capabilities and various plugin configurations.

Key Changes

  • Introduces a new experimental Dockerfile for building Chainlink with plugins for testing
  • Implements multi-stage build with Go compilation and Ubuntu-based runtime
  • Adds support for optional private and testing plugins installation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

ENV CL_MERCURY_CMD=chainlink-mercury

# CCIP specific
COPY ./cci[p]/confi[g] /ccip-config
Copy link

Copilot AI Sep 10, 2025

Choose a reason for hiding this comment

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

The glob pattern with square brackets cci[p]/confi[g] will match literal characters 'p' and 'g' respectively, not the full words 'ccip/config'. If you intend to copy the ccip/config directory, use COPY ./ccip/config /ccip-config instead.

Suggested change
COPY ./cci[p]/confi[g] /ccip-config
COPY ./ccip/config /ccip-config

Copilot uses AI. Check for mistakes.

@krebernisak krebernisak force-pushed the feat/chainlink-builder branch from 183df1b to 882b8ce Compare September 10, 2025 20:11
@krebernisak krebernisak force-pushed the feat/chainlink-builder branch from 70ef560 to 3ec8219 Compare September 11, 2025 17:50
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.

1 participant