Local Docker Image Builds

In addition to this common setup you can also provide your local image path and quickly rebuild it automatically before starting the test.

Create a configuration file smoke.toml

[blockchain_a]
  type = "anvil"
  docker_cmd_params = ["-b", "1"]

[nodeset]
  nodes = 5
  override_mode = "all"
  
  [nodeset.db]
    image = "postgres:12.0"

  [[nodeset.node_specs]]

    [nodeset.node_specs.node]
      # Dockerfile path is relative to "docker_ctx"
      docker_file = "core/chainlink.Dockerfile"
      docker_ctx = "../.."

These paths will work for e2e/capabilities in our main repository

Also check how you can add rebuild to your components.

Summary:

  • We learned how we can quickly re-build local docker image for CL node