Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Switch to Alpine Linux for the Docker image #10

Merged
merged 1 commit into from
Sep 9, 2022

Conversation

mcdonnnj
Copy link
Member

@mcdonnnj mcdonnnj commented Sep 9, 2022

🗣 Description

This pull request switches the underlying operating system of the base Docker image we use from Debian Buster to Alpine Linux 3.16. Any necessary configuration changes to support this change are also made.

💭 Motivation and context

Since Alpine Linux is designed to be lightweight it is especially suited for use in Docker images when other dependencies allow. Since this is a pretty straightforward Python Docker image that does not have any compiled library reliance (like cryptography) we can migrate to an Alpine Linux based image.

🧪 Testing

Automated tests pass. The lambda invokes successfully with --help when testing my locally built image.

✅ 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.
  • Tests have been added and/or modified to cover the changes in this PR.
  • All new and existing tests pass.

If possible it is preferable to use Alpine for our Docker images as its
design is well-suited for Docker images. Since this is a straight-
forward image that does not rely on packages with compiled elements we
can safely switch from Debian to Alpine for the OS of the underlying
Docker image.
@mcdonnnj mcdonnnj added the improvement This issue or pull request will add or improve functionality, maintainability, or ease of use label Sep 9, 2022
@mcdonnnj mcdonnnj self-assigned this Sep 9, 2022
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.

Works for me 👍

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.

Your analysis is correct as usual.

@mcdonnnj mcdonnnj merged commit 420eb37 into improvement/modernize_project Sep 9, 2022
@mcdonnnj mcdonnnj deleted the improvement/use_alpine branch September 9, 2022 17:48
@mcdonnnj mcdonnnj mentioned this pull request Feb 15, 2023
10 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
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.

3 participants