Skip to content

Reduce image size #1

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

Merged
merged 9 commits into from
Aug 4, 2022
Merged

Reduce image size #1

merged 9 commits into from
Aug 4, 2022

Conversation

tfausak
Copy link
Contributor

@tfausak tfausak commented Aug 4, 2022

No description provided.

@tfausak
Copy link
Contributor Author

tfausak commented Aug 4, 2022

Stack was only installed to avoid having HLS prompt to install it. We don't actually use Stack and I would prefer to not install it at all in order to avoid confusion.

HLS roughly doubles the size of the image, from 2.4 GB to 4.5 GB. I would prefer this image to be relatively slim, then other images can layer things on top.

I removed GHC's documentation, since I don't think anyone will be looking at that inside the container.

I also removed support for profiling builds. This hurts a bit more, but it's a huge amount of space for something that isn't used that often.

Finally I made some updates to the build process. Now images are tagged with GHC_VERSION-COMMIT_SHA, rather than sha-COMMIT_SHA like before. Also this now builds for both GHC 9.0.2 and 9.2.4. And finally it uses a cache to make builds much faster in the common case.

The last thing I need to do here is actually fill out the README.

@tfausak tfausak changed the title Remove Stack and HLS Reduce image size Aug 4, 2022
@tfausak tfausak marked this pull request as ready for review August 4, 2022 15:43
@tfausak tfausak merged commit 906ad59 into main Aug 4, 2022
@tfausak tfausak deleted the 2022-08-04-stackless branch August 4, 2022 15:43
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.

1 participant