Skip to content

Excluding paths from host directory read access #3463

Closed

Description

@vito

We need a way to exclude certain paths from being uploaded to Dagger when accessing a host directory.

Some ideas:

  1. Add exclude: [String!] to host.workdir and host.directory (plus include: [String!])
  2. Respect .dockerignore (see example)
  3. Respect .daggerignore (I would suggest only doing this if we have reason to believe .dockerignore should be going away and/or .daggerignore will want different paths)

Activity

  1. added this to the 0.3.0 milestone on Oct 20, 2022
  2. jlongtine commented on Oct 21, 2022

    @jlongtine
    Contributor

    Having include as well as exclude would be really helpful for dagger-cue

  3. marcosnils commented on Nov 8, 2022

    @marcosnils
    Contributor

    closed by #3583 ? or still waiting on the .dockerignore thing?

  4. vito commented on Nov 8, 2022

    @vito
    ContributorAuthor

    @marcosnils I'll close this out and let the .dockerignore support request come organically from a user. I know how to implement it but let's see if people even feel the need to maintain a separate file first vs. just handling this in code.

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions