Skip to content

Annotations for .dockerignore root directory #698

@postolka

Description

@postolka

Prerequisites

  • Plugin is in the latest version
  • Issue was not reported yet
  • Stack trace (if provided) contains mobi.hsz.idea.gitignore package name

Description

It would be nice to have some way to tell plugin, which directory is considered to be "root" for edited .dockerignore file.
Sometimes, Dockerfiles and corespoinding .dockerignore files are organized in project subdirectories. When editing such file, file/directory entries are being reported as non-existent ("XYZ entry is never used") - plugin looks into location of .dockerignore file, not to directory where actual build is executed - i.e.:

docker build -f docker/backend.Dockerfile .

Some form of annotation provided via comment could be used, to tell plugin. which directory is actual build root - i.e.

# root ../..
node_modules
...

Expected behavior:

Some way to tell plugin to look to different directory.

Actual behavior:

No way (at least none documented)

Versions

Plugin:

4.1.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions