-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: improve Dockerfiles and update .hadolint.yml rules
- Added a number of rules to be ignored in the `.hadolint.yml` file, including DL3041, DL4006, DL3013, SC2015, DL3006, and DL3018. - Added new variables `PIP_NO_WARN_SCRIPT_LOCATION` and `PIP_ROOT_USER_ACTION` to both `alpine.Dockerfile` and `ubi.Dockerfile` scripts. - Altered the `microdnf` install command in `ubi.Dockerfile` to include `findutils`. Signed-off-by: 陳鈞 <[email protected]>
- Loading branch information
Showing
4 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
ignored: | ||
- DL3042 # Avoid use of cache directory with pip. Use `pip install --no-cache-dir <package>` | ||
- DL3041 # Specify version with `dnf install -y <package>-<version>`. | ||
- DL3042 # Avoid use of cache directory with pip. Use `pip install --no-cache-dir <package>` | ||
- DL4006 # Set the SHELL option -o pipefail before RUN with a pipe in it | ||
- DL3013 # Pin versions in pip. Instead of `pip install <package>` use `pip install <package>==<version>` | ||
- SC2015 # Note that A && B || C is not if-then-else. C may run when A is true. | ||
- DL3006 # Always tag the version of an image explicitly | ||
- DL3018 # Pin versions in apk add. Instead of `apk add <package>` use `apk add <package>=<version>` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters