Skip to content

Conversation

@yammesicka
Copy link
Member

No description provided.

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

PR Type: Enhancement

PR Summary: The pull request focuses on upgrading the infrastructure by updating the Dockerfile to use more recent and secure methods of installing dependencies, including Docker itself, and optimizing the installation of Python packages. It transitions from using apt to apt-get for package management, adds new dependencies, and updates the way GPG keys are handled for Docker installation. Additionally, it modifies the way the HTML/CSS validator is downloaded and installed, and makes minor adjustments to user and environment setup within the Docker containers.

Decision: Comment

📝 Type: 'Enhancement' - not supported yet.
  • Sourcery currently only approves 'Typo fix' PRs.
✅ Issue addressed: this change correctly addresses the issue or implements the desired feature.
No details provided.
✅ Small diff: the diff is small enough to approve with confidence.
No details provided.

General suggestions:

  • Consider verifying the integrity of the GPG keys when adding them to ensure the authenticity of the packages being installed, especially for critical packages like Docker. This is a security best practice that can help prevent man-in-the-middle attacks.
  • Review the changes to ensure they align with the best practices for Dockerfile optimization and security. This includes minimizing the number of layers, ensuring that only necessary packages are installed, and cleaning up in the same layer where installations happen to keep the image size small.
  • Ensure that all changes are well-documented within the PR to make it clear why each change was made, which can be particularly helpful for critical infrastructure changes.

Thanks for using Sourcery. We offer it for free for open source projects and would be very grateful if you could help us grow. If you like it, would you consider sharing Sourcery on your favourite social media? ✨

Share Sourcery

Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

wget \
unzip \
&& install -m 0755 -d /etc/apt/keyrings \
&& curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc \
Copy link

Choose a reason for hiding this comment

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

🚨 security (llm): It's a good practice to verify the integrity of the GPG keys when adding them, especially for critical packages like Docker. This ensures the authenticity of the packages being installed.

@codecov
Copy link

codecov bot commented Feb 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.12%. Comparing base (39e8675) to head (af52155).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #365   +/-   ##
=======================================
  Coverage   80.12%   80.12%           
=======================================
  Files          63       63           
  Lines        2953     2953           
=======================================
  Hits         2366     2366           
  Misses        587      587           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yammesicka yammesicka merged commit 9eb5de2 into master Feb 26, 2024
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