-
Notifications
You must be signed in to change notification settings - Fork 352
Expand file tree
/
Copy pathinstall-leap15.sh
More file actions
executable file
·104 lines (95 loc) · 2.28 KB
/
Copy pathinstall-leap15.sh
File metadata and controls
executable file
·104 lines (95 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#!/usr/bin/env bash
# (C) Copyright 2025 Google LLC
# Copyright 2026 Hewlett Packard Enterprise Development LP
# Install OS updates and package. Include basic tools and daos dependencies
# that come from the core repo.
# Clean up any repos afterwards to save space.
# Switch to dnf as it seems a bit faster.
# libatomic should be in this list, but can not for now due to CI
# post provisioning issue.
# *** Keep these in as much alphabetical order as possible ***
set -e
arch=$(uname -i)
dnf_install_args="${1:-}"
: "${PYTHON_VERSION:=3.11}"
# shellcheck disable=SC2086
dnf --nodocs install ${dnf_install_args} \
boost-devel \
bzip2 \
cmake \
createrepo_c \
cunit-devel \
fdupes \
flex \
gcc \
gcc-c++ \
git \
go \
go-race \
hdf5-devel \
hwloc-devel \
libaio-devel \
libasan8 \
libcmocka-devel \
libcapstone-devel \
libevent-devel \
libibverbs-devel \
libiscsi-devel \
libjson-c-devel \
liblz4-devel \
libndctl-devel \
libnl3-devel \
libnuma-devel \
libpsm2-devel \
librdmacm-devel \
libopenssl-devel \
libprotobuf-c-devel \
libtool \
libunwind-devel \
libuuid-devel \
libyaml-devel \
lua-lmod \
make \
nasm \
openmpi3-devel \
pandoc \
patch \
patchelf \
pciutils-devel \
python${PYTHON_VERSION//./}-devel \
rpm-build \
scons \
sudo \
valgrind-devel \
which \
yasm
if [[ "${INSTALL_BUILD_CI_ONLY:-}" != "true" ]]; then
# Optional packages for full-featured images; can be skipped in essential-only mode.
# shellcheck disable=SC2086
dnf --nodocs install ${dnf_install_args} \
clang \
fuse3 \
gperftools-devel \
graphviz \
gzip \
ipmctl \
java-1_8_0-openjdk-devel \
maven \
ndctl \
numactl \
sg3_utils
fi
# ipmctl is only available on x86_64
if [ "$arch" = x86_64 ]; then
# shellcheck disable=SC2086
dnf --nodocs install ${dnf_install_args} \
ipmctl
fi
# shellcheck disable=SC2086
dnf --nodocs install ${dnf_install_args} ruby-devel
gem install json -v 2.7.6
gem install dotenv -v 2.8.1
gem install fpm -v 1.16.0
if [ ! -f /usr/bin/fpm ]; then
ln -s "$(basename "$(ls -1 /usr/bin/fpm.ruby*)")" /usr/bin/fpm
fi