Skip to content

Fix dockerfile hadolint problems#10754

Merged
potiuk merged 1 commit intoapache:masterfrom
PolideaInternal:fix-dockerfile-hadolint-problems
Sep 6, 2020
Merged

Fix dockerfile hadolint problems#10754
potiuk merged 1 commit intoapache:masterfrom
PolideaInternal:fix-dockerfile-hadolint-problems

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Sep 5, 2020

The hadolint check only checked the "main dir" Dockerfile
but we have more of them now. All of them are now checked.

The following problems are fixed:

  • DL3000 Use absolute WORKDIR
  • DL4000 MAINTAINER is deprecated
  • DL4006 Set the SHELL option -o pipefail before RUN with a pipe in it.
  • SC2046 Quote this to prevent word splitting.

The followiing problems are ignored:

  • DL3018 Pin versions in apk add. Instead of apk add <package> use apk add <package>=<version>

^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.

@potiuk potiuk requested review from ashb, dimberman, feluelle, kaxil, mik-laj and turbaszek and removed request for dimberman September 5, 2020 10:52
@potiuk
Copy link
Member Author

potiuk commented Sep 5, 2020

I need the #10750 to be meerged first :(

@potiuk potiuk force-pushed the fix-dockerfile-hadolint-problems branch from 6285c68 to 18ba2e8 Compare September 6, 2020 07:26
@kaxil
Copy link
Member

kaxil commented Sep 6, 2020

Can you please add a PR description, I would love to help the community understand what the PR actually fixes. As little as "fixes formatting" (just an example) is helpful for the community to understand when they see the PR

@potiuk potiuk force-pushed the fix-dockerfile-hadolint-problems branch 2 times, most recently from 913d605 to 9fccb46 Compare September 6, 2020 14:41
@potiuk
Copy link
Member Author

potiuk commented Sep 6, 2020

Can you please add a PR description, I would love to help the community understand what the PR actually fixes. As little as "fixes formatting" (just an example) is helpful for the community to understand when they see the PR

Good Idea. Added. I also made comments in the Dockerfiles where iItook deliberate version of ignoring a rule explaining why I did so.

The hadolint check only checked the "main dir" Dockerfile
but we have more of them now. All of them are now checked.

The following problems are fixed:

 * DL3000 Use absolute WORKDIR
 * DL4000 MAINTAINER is deprecated
 * DL4006 Set the SHELL option -o pipefail before RUN with a pipe in it.
 * SC2046 Quote this to prevent word splitting.

The followiing problems are ignored:

 * DL3018 Pin versions in apk add. Instead of `apk add <package>` use `apk add
   <package>=<version>`
@potiuk potiuk force-pushed the fix-dockerfile-hadolint-problems branch from 9fccb46 to 7fce5be Compare September 6, 2020 14:48
@potiuk
Copy link
Member Author

potiuk commented Sep 6, 2020

Also added explanation what each ignored rule means and link to the wiki describing them .

@potiuk potiuk merged commit e3c83da into apache:master Sep 6, 2020
@potiuk potiuk deleted the fix-dockerfile-hadolint-problems branch September 6, 2020 16:06
potiuk added a commit to potiuk/airflow that referenced this pull request Sep 14, 2020
The hadolint check only checked the "main dir" Dockerfile
but we have more of them now. All of them are now checked.

The following problems are fixed:

 * DL3000 Use absolute WORKDIR
 * DL4000 MAINTAINER is deprecated
 * DL4006 Set the SHELL option -o pipefail before RUN with a pipe in it.
 * SC2046 Quote this to prevent word splitting.

The followiing problems are ignored:

 * DL3018 Pin versions in apk add. Instead of `apk add <package>` use `apk add
   <package>=<version>`

(cherry picked from commit e3c83da)
potiuk added a commit that referenced this pull request Sep 15, 2020
The hadolint check only checked the "main dir" Dockerfile
but we have more of them now. All of them are now checked.

The following problems are fixed:

 * DL3000 Use absolute WORKDIR
 * DL4000 MAINTAINER is deprecated
 * DL4006 Set the SHELL option -o pipefail before RUN with a pipe in it.
 * SC2046 Quote this to prevent word splitting.

The followiing problems are ignored:

 * DL3018 Pin versions in apk add. Instead of `apk add <package>` use `apk add
   <package>=<version>`

(cherry picked from commit e3c83da)
RaviTezu pushed a commit to RaviTezu/airflow that referenced this pull request Oct 25, 2020
The hadolint check only checked the "main dir" Dockerfile
but we have more of them now. All of them are now checked.

The following problems are fixed:

 * DL3000 Use absolute WORKDIR
 * DL4000 MAINTAINER is deprecated
 * DL4006 Set the SHELL option -o pipefail before RUN with a pipe in it.
 * SC2046 Quote this to prevent word splitting.

The followiing problems are ignored:

 * DL3018 Pin versions in apk add. Instead of `apk add <package>` use `apk add
   <package>=<version>`

(cherry picked from commit e3c83da)
kaxil pushed a commit that referenced this pull request Nov 12, 2020
The hadolint check only checked the "main dir" Dockerfile
but we have more of them now. All of them are now checked.

The following problems are fixed:

 * DL3000 Use absolute WORKDIR
 * DL4000 MAINTAINER is deprecated
 * DL4006 Set the SHELL option -o pipefail before RUN with a pipe in it.
 * SC2046 Quote this to prevent word splitting.

The followiing problems are ignored:

 * DL3018 Pin versions in apk add. Instead of `apk add <package>` use `apk add
   <package>=<version>`

(cherry picked from commit e3c83da)
@potiuk potiuk added the type:misc/internal Changelog: Misc changes that should appear in change log label Nov 14, 2020
@potiuk potiuk added this to the Airflow 1.10.13 milestone Nov 14, 2020
potiuk added a commit that referenced this pull request Nov 16, 2020
The hadolint check only checked the "main dir" Dockerfile
but we have more of them now. All of them are now checked.

The following problems are fixed:

 * DL3000 Use absolute WORKDIR
 * DL4000 MAINTAINER is deprecated
 * DL4006 Set the SHELL option -o pipefail before RUN with a pipe in it.
 * SC2046 Quote this to prevent word splitting.

The followiing problems are ignored:

 * DL3018 Pin versions in apk add. Instead of `apk add <package>` use `apk add
   <package>=<version>`

(cherry picked from commit e3c83da)
cfei18 pushed a commit to cfei18/incubator-airflow that referenced this pull request Mar 5, 2021
The hadolint check only checked the "main dir" Dockerfile
but we have more of them now. All of them are now checked.

The following problems are fixed:

 * DL3000 Use absolute WORKDIR
 * DL4000 MAINTAINER is deprecated
 * DL4006 Set the SHELL option -o pipefail before RUN with a pipe in it.
 * SC2046 Quote this to prevent word splitting.

The followiing problems are ignored:

 * DL3018 Pin versions in apk add. Instead of `apk add <package>` use `apk add
   <package>=<version>`

(cherry picked from commit e3c83da)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools area:helm-chart Airflow Helm Chart type:misc/internal Changelog: Misc changes that should appear in change log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants