Giter VIP home page Giter VIP logo

docker-static-haskell's People

Contributors

passy avatar snoyberg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

passy

docker-static-haskell's Issues

Update to use ghc from the edge testing repository

Opening this issue as an alert to anyone on github that appears to be using my ghc port.

Ghc and cabal are now upstreamed for x86_64 on alpine linux edge. Ghc requires alpine linux 3.5 or higher to run. But otherwise the upstreamed package is the same as my old port. With a caveat that the profiled ghc libraries are now in a sub package named ghc-dev.

Either add the edge testing repository to /etc/apk/repositories, or alternatively you may install ghc/cabal via:

# apk --no-cache add --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing ghc ghc-dev cabal

For an up to date list of what is ported and where reference this search:
https://pkgs.alpinelinux.org/packages?name=&branch=&repo=&arch=&maintainer=Mitch+Tishmack

As a side note for stack specifically, I added a flag to the stack cabal file that makes it easy to build stack statically.
commercialhaskell/stack@cda4c09

The way stack is being built statically here is unnecessary, and the c runtime changes are also unnecessary and will only produce a larger static binary. Recommend you change to using the existing flag instead of the glibc gcc runtime hacks in use here.

Also note, I also ported upx to alpine edge, so you can also add upx from the edge testing repo if you want to test and validate that as well. Note however, upx does NOT compress dynamic musl binaries however, this is a upx limitation not the ports.

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.