Skip to content

Add Documentation for dagger.json #7324

Closed

Description

@levlaz

What is the issue?

As far as I can tell we don't have any documentation describing the contents of dagger.json.

We should have a section in the docs that talks about the file, what it contains by default, and what additional parameters are available.

The biggest point of friction for newcomers is there is a way to exclude files and dirs via dagger.json that is undocumented. So for projects with large directories (that are not required for the actual build) it can cause significant slowness with no obvious remedy.

The closest thing we have is the docs in this file that implements the config object:

const Filename = "dagger.json"

Activity

  1. added
    area/documentation
    on May 8, 2024
  2. helderco commented on May 8, 2024

    @helderco
    Contributor

    dagger.json isn't meant to be edited manually, that's just a stop gap. The real fix is to polish dagger config:

  3. levlaz commented on May 8, 2024

    @levlaz
    ContributorAuthor

    Thanks @helderco this is an important clarification. I think my point would then to improve the existing docs around dagger config https://docs.dagger.io/reference/979596/cli/#dagger-config -- but seems like that's going to be capture in the other issue. Ill close this for now.

  4. removed
    area/documentation
    on May 31, 2024
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