Skip to content

Use docker contexts for fetching sources (where possible) #927

Description

@nightkr

Docs: https://docs.docker.com/build/bake/contexts/

This should let us get rid of a bunch of redundant downloading code, but more importantly make it easier to patch out components ("use this local jmx-exporter sources instead of downloading the pinned version from git").

Activity

  1. NickLarsenNZ commented on Feb 18, 2025

    @NickLarsenNZ
    Member

    This is already happening to a degree. Or at least when I look at the generated bake file, I see contexts.

    Eg:

    FROM stackable/image/statsd_exporter AS statsd_exporter-builder
      "target": {
        "airflow-2_10_2": {
          "context": ".",
          "contexts": {
            "stackable/image/statsd_exporter": "target:statsd_exporter-0_28_0",
            "stackable/image/vector": "target:vector-0_43_1"
          },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions