Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotations for .dockerignore root directory #698

Open
2 of 3 tasks
postolka opened this issue May 12, 2021 · 0 comments
Open
2 of 3 tasks

Annotations for .dockerignore root directory #698

postolka opened this issue May 12, 2021 · 0 comments

Comments

@postolka
Copy link

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
@postolka postolka changed the title Annotations for .dockerfile root directory Annotations for .dockerignore root directory May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants