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

Update failing Dockerfile configuration #45

Merged
merged 4 commits into from
Jan 10, 2022

Conversation

mcdonnnj
Copy link
Member

@mcdonnnj mcdonnnj commented Jan 9, 2022

🗣 Description

This pull request updates the Docker configuration used to run this Python project as a GitHub Action. It includes:

  • Pinning the base Docker image.
  • Installing system packages necessary for the cffi Python package.
  • Upgrading the core Python packages pip, setuptools, and wheel.
  • Disable caching for all installation steps in keeping with Dockerfile best practices.

💭 Motivation and context

The main cause of this update is because the lineage_scan workflow is in a state of failure because the Docker image for this project is unable to build. The root cause is a lack of build tools for the cffi Python package. While updating to resolve that I decided to do some other housekeeping to hopefully prevent unexpected failures of this nature in the future.

🧪 Testing

Automated tests pass. A lineage_scan run with this branch was successful.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All new and existing tests pass.

In addition add the `--no-cache` option for apk to follow Dockerfile
best practices.
We need to pin to the latest minor version of Python that we are
testing this package against. This should be updated once a new version
of Python is released and we have verified functionality with that
version.
Add a RUN command to install the latest versions of pip, setuptools,
and wheel before installing the contents of requirements.txt. Ensure
that all pip commands use the `--no-cache-dir` option to keep with
Dockerfile best practices.
@mcdonnnj mcdonnnj added bug This issue or pull request addresses broken functionality improvement This issue or pull request will add or improve functionality, maintainability, or ease of use labels Jan 9, 2022
@mcdonnnj mcdonnnj self-assigned this Jan 9, 2022
Update to correctly use the full form of CISA and add myself as an
author.
Copy link
Member

@jsf9k jsf9k left a comment

Choose a reason for hiding this comment

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

Deja vu!

Copy link
Member

@dav3r dav3r left a comment

Choose a reason for hiding this comment

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

image

@mcdonnnj mcdonnnj merged commit 78dc95b into develop Jan 10, 2022
@mcdonnnj mcdonnnj deleted the bug/fix_dockerfile_configuration branch January 10, 2022 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue or pull request addresses broken functionality improvement This issue or pull request will add or improve functionality, maintainability, or ease of use
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants