@@ -11,13 +11,48 @@ From: ubuntu:22.04
11
11
wget
12
12
rm -rf /var/lib/apt/lists/*
13
13
14
+ %post
15
+ apt-get update -y
16
+ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
17
+ apt-transport-https \
18
+ dirmngr \
19
+ gnupg \
20
+ software-properties-common
21
+ rm -rf /var/lib/apt/lists/*
22
+
23
+ %post
24
+ cd /
25
+ wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
26
+
27
+ %post
28
+ cd /
29
+ add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
30
+
14
31
%post
15
32
apt-get update -y
16
33
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
17
34
build-essential \
18
35
make
19
36
rm -rf /var/lib/apt/lists/*
20
37
38
+ # CMake version 3.25.1
39
+ %post
40
+ apt-get update -y
41
+ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
42
+ make \
43
+ wget
44
+ rm -rf /var/lib/apt/lists/*
45
+ %post
46
+ cd /
47
+ mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://github.com/Kitware/CMake/releases/download/v3.25.1/cmake-3.25.1-linux-x86_64.sh
48
+ mkdir -p /usr/local
49
+ /bin/sh /var/tmp/cmake-3.25.1-linux-x86_64.sh --prefix=/usr/local --skip-license
50
+ rm -rf /var/tmp/cmake-3.25.1-linux-x86_64.sh
51
+ %environment
52
+ export PATH=/usr/local/bin:$PATH
53
+ %post
54
+ export PATH=/usr/local/bin:$PATH
55
+
21
56
# GNU compiler
22
57
%post
23
58
apt-get update -y
@@ -27,6 +62,37 @@ From: ubuntu:22.04
27
62
gfortran
28
63
rm -rf /var/lib/apt/lists/*
29
64
65
+ # HDF5 version 1.12.0
66
+ %post
67
+ apt-get update -y
68
+ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
69
+ bzip2 \
70
+ file \
71
+ make \
72
+ wget \
73
+ zlib1g-dev
74
+ rm -rf /var/lib/apt/lists/*
75
+ %post
76
+ cd /
77
+ mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp http://www.hdfgroup.org/ftp/HDF5/releases/hdf5-1.12/hdf5-1.12.0/src/hdf5-1.12.0.tar.bz2
78
+ mkdir -p /var/tmp && tar -x -f /var/tmp/hdf5-1.12.0.tar.bz2 -C /var/tmp -j
79
+ cd /var/tmp/hdf5-1.12.0 && ./configure --prefix=/usr/local/hdf5 --enable-cxx --enable-fortran
80
+ make -j$(nproc)
81
+ make -j$(nproc) install
82
+ rm -rf /var/tmp/hdf5-1.12.0 /var/tmp/hdf5-1.12.0.tar.bz2
83
+ %environment
84
+ export CPATH=/usr/local/hdf5/include:$CPATH
85
+ export HDF5_DIR=/usr/local/hdf5
86
+ export LD_LIBRARY_PATH=/usr/local/hdf5/lib:$LD_LIBRARY_PATH
87
+ export LIBRARY_PATH=/usr/local/hdf5/lib:$LIBRARY_PATH
88
+ export PATH=/usr/local/hdf5/bin:$PATH
89
+ %post
90
+ export CPATH=/usr/local/hdf5/include:$CPATH
91
+ export HDF5_DIR=/usr/local/hdf5
92
+ export LD_LIBRARY_PATH=/usr/local/hdf5/lib:$LD_LIBRARY_PATH
93
+ export LIBRARY_PATH=/usr/local/hdf5/lib:$LIBRARY_PATH
94
+ export PATH=/usr/local/hdf5/bin:$PATH
95
+
30
96
%post
31
97
apt-get update -y
32
98
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
0 commit comments