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

Add missing mime.types #599

Merged
merged 1 commit into from
Jul 22, 2020
Merged

Conversation

mtojek
Copy link
Contributor

@mtojek mtojek commented Jul 22, 2020

Fixes: #590

@mtojek mtojek self-assigned this Jul 22, 2020
@elasticmachine
Copy link

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #599 opened]

  • Start Time: 2020-07-22T14:32:54.466+0000

  • Duration: 8 min 21 sec

Test stats 🧪

Test Results
Failed 0
Passed 161
Skipped 0
Total 161

@mtojek
Copy link
Contributor Author

mtojek commented Jul 22, 2020

self-approved

@mtojek mtojek merged commit 0f1090d into elastic:master Jul 22, 2020
kruskall added a commit to kruskall/package-registry that referenced this pull request Jul 12, 2022
mailcap was added back when the image was using centOS to add
/etc/mime.types.

See elastic#599

Later, the package registry moved to Ubuntu LTS and mailcap was
replaced by mime-support which also installs mailcap.

Now mime-support is a transitional package and we can replace it with
media-types, to only install the file (/etc/mime.types) that we need.

The issue with mailcap is the large dependency tree and the dependency
on perl, by replacing mime-support with media-types we can reduce the
image size.

Before: 202MB
After: 148MB
kruskall added a commit to kruskall/package-registry that referenced this pull request Jul 12, 2022
mailcap was added back when the image was using centOS to add
/etc/mime.types.

See elastic#599

Later, the package registry moved to Ubuntu LTS and mailcap was
replaced by mime-support which also installs mailcap.

Now mime-support is a transitional package and we can replace it with
media-types, to only install the file (/etc/mime.types) that we need.

The issue with mailcap is the large dependency tree and the dependency
on perl, by replacing mime-support with media-types we can reduce the
image size.

Before: 202MB
After: 148MB
jsoriano pushed a commit that referenced this pull request Jul 14, 2022
mailcap was added back when the image was using centOS to add
/etc/mime.types.

See #599

Later, the package registry moved to Ubuntu LTS and mailcap was
replaced by mime-support which also installs mailcap.

Now mime-support is a transitional package and we can replace it with
media-types, to only install the file (/etc/mime.types) that we need.

The issue with mailcap is the large dependency tree and the dependency
on perl, by replacing mime-support with media-types we can reduce the
image size.

Before: 202MB
After: 148MB
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.

Content type text/plain sent for json files
2 participants