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

feat(container): switch to Alpine container #4185

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

skycaptain
Copy link
Contributor

Description

This reduces the container image size from about 950MB to 200MB.

Closes #4183.

Motivation and Context

See #4183

How Has This Been Tested?

$ docker buildx build -f Dockerfile.ci .

Types of changes

Although I've labeled this as a non-breaking change, it could potentially disrupt containers derived from this image. Please consider reclassifying it as a breaking change if necessary.

  • 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)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Copy link

codesandbox-ci bot commented Oct 18, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Dockerfile.ci Outdated Show resolved Hide resolved
@escapedcat
Copy link
Member

/cc @kaiehrhardt @knocte would you mind having a look at this?

@knocte
Copy link
Contributor

knocte commented Oct 19, 2024

I have no idea about how this Dockerfile.ci is used

This reduces the container image size from about 950MB to 200MB.

Closes conventional-changelog#4183.
@kaiehrhardt
Copy link
Contributor

@escapedcat lgtm

@skycaptain
Copy link
Contributor Author

Is there a list of system dependencies for commitlint? I just realized yesterday that I forgot to add git, and I'm wondering whether there are more dependencies. Previously, many "basic" tools were available from the large base image, but they would now be missing if not explicitly installed. Are there other things I should test?

@escapedcat
Copy link
Member

Is there a list of system dependencies for commitlint?

Haven't seen one. I'm also not exactly sure. Maybe we try this, give it a try and adjust if needed?

@skycaptain
Copy link
Contributor Author

Jumping back on this PR. Is there anything still missing here, or shall we merge as @escapedcat suggested?

@escapedcat
Copy link
Member

@skycaptain hey, yes, sorry! Let me merge it these days and we'll see what happens ;)

@escapedcat escapedcat merged commit 93be696 into conventional-changelog:master Nov 8, 2024
7 of 8 checks passed
@escapedcat
Copy link
Member

Done 🤞

@escapedcat
Copy link
Member

Looks like this went well?

jeohist added a commit to jeohist/commitlint that referenced this pull request Nov 20, 2024
With the switch to Alpine in conventional-changelog#4185, `--from-last-tag` no longer works.
This is because git is no longer available in the container.
jeohist added a commit to jeohist/commitlint that referenced this pull request Nov 20, 2024
With the switch to Alpine in conventional-changelog#4185, `--from-last-tag` no longer works.
This is because git is no longer available in the container.
jeohist added a commit to jeohist/commitlint that referenced this pull request Nov 20, 2024
With the switch to Alpine in conventional-changelog#4185, `--from-last-tag` no longer works.
This is because git is no longer available in the container.
jeohist added a commit to jeohist/commitlint that referenced this pull request Nov 20, 2024
With the switch to Alpine in conventional-changelog#4185, `--from-last-tag` no longer works.
This is because git is no longer available in the container.
jeohist added a commit to jeohist/commitlint that referenced this pull request Nov 20, 2024
With the switch to Alpine in conventional-changelog#4185, `--from-last-tag` no longer works.
This is because git is no longer available in the container.
escapedcat pushed a commit that referenced this pull request Nov 21, 2024
With the switch to Alpine in #4185, `--from-last-tag` no longer works.
This is because git is no longer available in the container.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

feat: Slim down official docker image
4 participants