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

Base Image Missing Base images should specify a tag to use #1053

Closed
sbollap1 opened this issue Dec 1, 2021 · 2 comments
Closed

Base Image Missing Base images should specify a tag to use #1053

sbollap1 opened this issue Dec 1, 2021 · 2 comments
Labels
O: stale 🤖 This issue or pull request is stale, it will be closed if there is no activity question Further information is requested

Comments

@sbollap1
Copy link

sbollap1 commented Dec 1, 2021

I am seeing this issue when lint is being run on my Dockerfile(s). How can I disable this specific error. during linting DOCKERFILE_DOCKERFILELINT is the linter being used

Line 3: FROM ${FROM}
Issue  Category      Title                 Description
    1  Clarity       Base Image Missing    Base images should specify a tag to use.
                     Tag

My dockerfile is looking like this:


ARG FROM=docker.io/ubuntu:bionic

FROM ${FROM}

ARG URL=https://pypi.python.org/simple/
...

Currently, my .dockerfilelintrc has this:

rules:
  from_first: off

not sure which one of these would be required https://github.com/replicatedhq/dockerfilelint

@nvuillam
Copy link
Member

nvuillam commented Dec 1, 2021

@sbollap1 it seems dockerfilelint is not maintained anymore, it's possible that we remove it in a next major version, as hadolint covers all its rules, so you may anticipate and add the following in your .mega-linter.yml file

DISABLE_LINTERS:
- DOCKERFILE_DOCKERFILELINT

@github-actions
Copy link
Contributor

github-actions bot commented Jan 1, 2022

This issue has been automatically marked as stale because it has not had recent activity.
It will be closed in 14 days if no further activity occurs.
Thank you for your contributions.

If you think this issue should stay open, please remove the O: stale 🤖 label or comment on the issue.

@github-actions github-actions bot added the O: stale 🤖 This issue or pull request is stale, it will be closed if there is no activity label Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O: stale 🤖 This issue or pull request is stale, it will be closed if there is no activity question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants