Giter VIP home page Giter VIP logo

Comments (4)

psftw avatar psftw commented on July 17, 2024

Sounds reasonable, though if -prof is significantly bigger, it may make more sense to add a variant instead? I think we are stuck with quite large images due to GHC + dependencies, so the value of a -slim is questionable to me, but I have not looked at the numbers recently.

from docker-haskell.

phadej avatar phadej commented on July 17, 2024
  • Rust has e.g. 1-slim-stretch tag, which downloaded a layer of size 371.3MB for me.
    • their slim vs stretch differ mainly in the choice of base image.
  • Haskell 8.4.4 main layer is is 244MB,

I think we can afford -prof in normal image and -slim can stay slim. That would be good for consistency with other official images. Our current image is what other call "slim": no extras.

from docker-haskell.

AlistairB avatar AlistairB commented on July 17, 2024

I'm planning to implement this suggestion. I have seen people expect it recently and I think that is fairly reasonable. So..

  • Defaults will include profiling
  • Add -slim variants (for Debian only) which do not include profiling support and are based off of the debian -slim variants.
  • Alpine + Windows will also include profiling (when they are supported). I do not think I will add a slim variant here.

The profiling files take the image from 1.73GB -> 2.46GB (740mb) for 9.2 on Debian buster. Not the worst I guess. I think minimising image size is overrated.

I will ponder this more. On the flip side there has been little interest in including profiling libs.. hmm

from docker-haskell.

AlistairB avatar AlistairB commented on July 17, 2024

Decided to just pull the trigger as described above.

from docker-haskell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.