Code Monkey home page Code Monkey logo

Comments (7)

SerialVelocity avatar SerialVelocity commented on May 26, 2024

(this probably also would be good for ldc, etc)

from docker-dmd.

wilzbach avatar wilzbach commented on May 26, 2024

Musl (the alternative glibc replaced used by Alpine) hasn't been supported by DRuntime.
However, recent work is closing this gap and compiling DRuntime with Musl will be possible soon (see dlang/druntime#2071).

from docker-dmd.

SerialVelocity avatar SerialVelocity commented on May 26, 2024

This may also be possible by using https://hub.docker.com/r/frolvlad/alpine-glibc/ or https://github.com/sgerrand/alpine-pkg-glibc

from docker-dmd.

wilzbach avatar wilzbach commented on May 26, 2024
  1. It doesn't work (at least when I tried it half a year ago)
  2. Using the bulky glibc kills the entire point of using alpine in the first place ;-)

from docker-dmd.

SerialVelocity avatar SerialVelocity commented on May 26, 2024
  1. Ah, that's a shame. There are hacky things in that image to make it work from what I remember.
  2. It doesn't really make a bulky image. It's 5MB instead of 43MB 😄 (for some reason I thought Ubuntu was in the 100s of MB though)

from docker-dmd.

joakim-noah avatar joakim-noah commented on May 26, 2024

This should be possible now, with the ldc 1.8 release. There's an Alpine/x64 build up there, and I've updated the changelog with exactly which Alpine packages I needed to use it. Post in the microservices thread in the General forum to publicize any images you make available.

from docker-dmd.

andrewbenton avatar andrewbenton commented on May 26, 2024

I built out an LDC on alpine using that build andrewbenton/alpine-ldc, but it still has the aforementioned issues with musl and druntime until that's patched up. An interesting approach that's worked tam4s/hello-vibe involves building a static binary with ubuntu and then loading it onto alpine.

from docker-dmd.

Related Issues (2)

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.