Skip to content

Commit

Permalink
Fix Octave dockerfile (#162)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
BSchilperoort committed May 17, 2023
1 parent 8454ce4 commit 783d500
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 783d500

Please sign in to comment.