From 783d500986b0855cc33a38ca5892ac53c7feedf2 Mon Sep 17 00:00:00 2001 From: Bart Schilperoort Date: Wed, 17 May 2023 14:50:37 +0200 Subject: [PATCH] Fix Octave dockerfile (#162) * Pin octave statistics to 1.4.3. Bump octave to 8.1.0 * Also pin io package version * Pin netcdf package as well * Remove octave-netcdf. Update pkg link for statistics --- .devcontainer/Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 27ee6a79..263528ed 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,7 +1,11 @@ -FROM gnuoctave/octave:7.2.0 +FROM gnuoctave/octave:8.1.0 -RUN octave --eval 'pkg install -forge statistics' -RUN apt update && apt install -yq libnetcdf-dev && octave --eval 'pkg install -forge netcdf' +# NOTE: all package version are pinned to avoid the container breaking with the +# latest version on octave's forge. +# +# IO is a dependency of statistics, needs to be installed first. +RUN octave --eval 'pkg install "https://downloads.sourceforge.net/project/octave/Octave%20Forge%20Packages/Individual%20Package%20Releases/io-2.6.4.tar.gz"' +RUN octave --eval 'pkg install "https://downloads.sourceforge.net/project/octave/Octave%20Forge%20Packages/Individual%20Package%20Releases/statistics-1.4.3.tar.gz"' ARG USERNAME=octave ARG USER_UID=1000