Skip to content

Fix for Dockerfile smell DL3025#1199

Merged
wajda merged 2 commits into
AbsaOSS:developfrom
grosa1:fix/dockerfile-smell-DL3025
Apr 14, 2023
Merged

Fix for Dockerfile smell DL3025#1199
wajda merged 2 commits into
AbsaOSS:developfrom
grosa1:fix/dockerfile-smell-DL3025

Conversation

@grosa1
Copy link
Copy Markdown
Contributor

@grosa1 grosa1 commented Apr 13, 2023

Hi!
The Dockerfile placed at "test-data-generator/Dockerfile" contains the best practice violation DL3025 detected by the hadolint tool.

The smell DL3025 occurs if the JSON notation is not used for the arguments of CMD and ENTRYPOINT instructions.
This pull request proposes a fix for that smell generated by my fixing tool. The patch was manually verified before opening the pull request.
To fix this smell, specifically, the command arguments are refactored in the JSON notation format.

This change is only aimed at fixing that specific smell. If the fix is not valid or useful, please briefly indicate the reason and suggestions for possible improvements.

Thanks in advance

Signed-off-by: Giovanni Rosa <g.rosa1@studenti.unimol.it>
@grosa1 grosa1 requested review from cerveada and wajda as code owners April 13, 2023 23:51
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Copy Markdown
Contributor

@wajda wajda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @grosa1. Approved.
I just removed the extra spaces around brackets to match with the existing formatting style.

@wajda wajda added this to the 1.0.0 milestone Apr 14, 2023
@wajda wajda merged commit bfd27d2 into AbsaOSS:develop Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants