smizy/docker-octave

Currently fails

Closed this issue · 3 comments

docker build --no-cache .

...
OK: 170 MiB in 104 packages
+ apk --no-cache add --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ octave
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz
WARNING: This apk-tools is OLD! Some packages might not function properly.
ERROR: unsatisfiable constraints:
  so:libgfortran.so.5 (missing):
    required by:
                 octave-4.2.0-r2[so:libgfortran.so.5]
                 octave-4.2.0-r2[so:libgfortran.so.5]
                 octave-4.2.0-r2[so:libgfortran.so.5]
                 octave-4.2.0-r2[so:libgfortran.so.5]
                 octave-4.2.0-r2[so:libgfortran.so.5]
                 octave-4.2.0-r2[so:libgfortran.so.5]
                 octave-4.2.0-r2[so:libgfortran.so.5]
                 octave-4.2.0-r2[so:libgfortran.so.5]
                 octave-4.2.0-r2[so:libgfortran.so.5]
                 octave-4.2.0-r2[so:libgfortran.so.5]
                 octave-4.2.0-r2[so:libgfortran.so.5]
                 octave-4.2.0-r2[so:libgfortran.so.5]
  so:libreadline.so.7 (missing):
    required by:
                 octave-4.2.0-r2[so:libreadline.so.7]
                 octave-4.2.0-r2[so:libreadline.so.7]
                 octave-4.2.0-r2[so:libreadline.so.7]
                 octave-4.2.0-r2[so:libreadline.so.7]
                 octave-4.2.0-r2[so:libreadline.so.7]
                 octave-4.2.0-r2[so:libreadline.so.7]
                 octave-4.2.0-r2[so:libreadline.so.7]
                 octave-4.2.0-r2[so:libreadline.so.7]
                 octave-4.2.0-r2[so:libreadline.so.7]
                 octave-4.2.0-r2[so:libreadline.so.7]
                 octave-4.2.0-r2[so:libreadline.so.7]
                 octave-4.2.0-r2[so:libreadline.so.7]
The command '/bin/sh -c set -x     && apk update     && apk --no-cache add         bash         fltk         ghostscript         gnuplot         lapack         less         python3         py3-zmq         su-exec         tini         xvfb     && apk --no-cache add         --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/         octave     && pip3 install --upgrade pip     && pip3 install ipywidgets     && pip3 install jupyter-console     && pip3 install octave_kernel     && python3 -m octave_kernel.install     && find /usr/lib/python3.5 -name __pycache__ | xargs rm -r     && rm -rf /root/.[acpw]*     && mkdir -p /etc/jupyter     && adduser -D  -g '' -s /sbin/nologin -u 1000 docker     && adduser -D  -g '' -s /sbin/nologin octave     && adduser -D  -g '' -s /sbin/nologin jupyter' returned a non-zero code: 3

The image in dockerhub is good to go

docker run --rm -it smizy/octave:4.2.0-alpine octave --version

octave: X11 DISPLAY environment variable not set
octave: disabling GUI features
GNU Octave, version 4.2.0
Copyright (C) 2016 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.

Octave was configured for "x86_64-alpine-linux-musl".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.

I guess the octave package in alpine/edge/testing/ has changed?

smizy commented

Hi @avishayp, alpine edge octave dependent libs(libgfortran, lapack, readline) version seems to be changed.
I changed base alpine version and a few lines in Dockerfile, pushed image "smizy/octave:4.2.0-r2-alpine". Please give it a try.

Hi @smizy thank you for looking at it! Your image on dockerhub works fine (from my perspective, which is not a thorough test). However I could not build the file due to persistent protocol error from apk. Trying to use mirrors did not solve it, but switching to alpine:edge worked well. So for reference, I'm able to consistently get a running octave now:

FROM alpine:edge

RUN apk add --update --no-cache \
       	libgfortran \
       	lapack \
       	readline

RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
       	octave

CMD octave --version

I guess once edge becomes 3.9 you could switch to that. Case closed!