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

Fix for Dockerfile smell DL3008 #3098

Merged
merged 1 commit into from
May 16, 2023

Conversation

grosa1
Copy link
Contributor

@grosa1 grosa1 commented Apr 12, 2023

Description

Hi!
The Dockerfile placed at "Dockerfile" contains the best practice violation DL3008 detected by the hadolint tool.

The smell DL3008 occurs when the version pinning for the installed packages with apt is not specified. This could lead to unexpected behavior when building the Dockerfile.
In this pull request, we propose a fix for that smell generated by our fixing tool. We have verified that the patch is correct before opening the pull request.
To fix this smell, specifically, we use a heuristic approach that selects the most probable version tag for a given apt package corresponding to the latest version at the current date. The package versions are retrieved using the Canonical Launchpad APIs.

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

Related Issue

None

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • All commits have been signed-off for the Developer Certificate of Origin.

@grosa1 grosa1 requested review from a team as code owners April 12, 2023 15:00
@netlify
Copy link

netlify bot commented Apr 12, 2023

👷 Deploy Preview for chef-workstation processing.

Name Link
🔨 Latest commit 1815bd0
🔍 Latest deploy log https://app.netlify.com/sites/chef-workstation/deploys/6463ac7a9d777600089757aa

@sonarcloud
Copy link

sonarcloud bot commented Apr 12, 2023

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

Signed-off-by: Giovanni Rosa <g.rosa1@studenti.unimol.it>
@sonarcloud
Copy link

sonarcloud bot commented May 16, 2023

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

@vkarve-chef
Copy link
Collaborator

thanks @grosa1 , this would reflect in our next release.

@vkarve-chef vkarve-chef merged commit 7015bb7 into chef:main May 16, 2023
@vkarve-chef vkarve-chef added the Expeditor: Skip All Used to skip all merge_actions. label May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Expeditor: Skip All Used to skip all merge_actions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants