-
Notifications
You must be signed in to change notification settings - Fork 6
Instructions for alpine / dockerfile #22
Comments
You need to add the "testing" repo to your /etc/apk/repositories |
Yep, that or do this:
Note, cabal isn't yet in the testing/edge repo. alpinelinux/aports#915 |
Thank you! |
@mitchty Is there possibly an older / alternative version that has cabal on it? |
Yep, you can just use the old ports version like in the example docker file. Or if you don't want to add that as a repo you can just copy my signing key and then apk add as above with no-cache and get cabal or stack. That is just copy the mitch.tishmack@gmail.com-55881c97.rsa.pub key in the examples directory to say /etc/apk/keys/mitch.tishmack@gmail.com-55881c97.rsa.pub Then apk --no-cache add --repository https://s4-us-west-2.amazonaws.com/alpine-ghc/8.0 cabal Should do it until cabal is upstreamed. Note stack is in there as well if you want it. |
I'm getting an error of |
Not sure exactly what you're doing but note all the apk's have very minimal depends lines. They have enough to run the commands on their own, but not necessarily enough to be fully functional. At a glance I'd presume you need to add ncurses-dev or the ncurses apks. That or add all of alpine-sdk. The packages are meant to be minimal so that you can customize the size of your installs. Notably that means if you need to use ncurses headers etc..., its on yourself to add those to your build containers. Those who don't need ncurses for their development would remain unaffected. |
Many thanks @mitchty ! Really appreciate all your help. I'm guessing I'll have to liaise with the alpine community / forums to know which packages I need to install to fulfill the necessary dependencies (if they occur in future)? |
Mostly, all you really need to do is look at the build logs and look for whatever header files don't get found and find out what apk provides them. http://pkgs.alpinelinux.org/packages Is about the best way to find files at the moment. |
I'm trying to use the new alpine package using docker with a Dockerfile as:
The result is:
Can anyone point me in the right direction to use this?
The text was updated successfully, but these errors were encountered: