-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpre-build.sh
More file actions
120 lines (110 loc) · 2.11 KB
/
pre-build.sh
File metadata and controls
120 lines (110 loc) · 2.11 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#!/bin/bash
# This will install flux-core and flux-security into the
# alma image.
here=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
root=$(dirname $here)
ls
FLUX_REPO=$(cat ./flux-repo)
FLUX_BRANCH=$(cat ./flux-branch)
FLUX_RELEASE_VERSION=$(cat ./flux-release-version)
echo "repo: $FLUX_REPO"
echo "branch: $FLUX_BRANCH"
echo "release: $FLUX_RELEASE_VERSION"
git clone -b ${FLUX_BRANCH} ${FLUX_REPO} /tmp/flux-core || git clone https://github.com/flux-framework/flux-core /tmp/flux-core
mv /tmp/flux-core/src/bindings/python/flux ./flux
export FLUX_REPO FLUX_BRANCH FLUX_RELEASE_VERSION
yum -y update \
&& yum -y install epel-release \
&& yum -y install \
wget \
man-db \
less \
xz \
lbzip2 \
fftw-devel \
fftw \
git \
curl \
bind-utils \
sudo \
munge \
ccache \
lua \
valgrind \
jq \
which \
file \
unzip \
vim \
patch \
diffutils \
pkgconfig \
libtool \
autoconf \
automake \
gcc-gfortran \
gcc \
gcc-c++ \
make \
cmake \
bison \
flex \
python36 \
python3-devel \
python3-six \
python3-yaml \
python3-jsonschema \
python3-sphinx \
libsodium \
libsodium-devel \
libyaml-devel \
libgomp \
zeromq-devel \
czmq-devel \
jansson-devel \
munge-devel \
ncurses-devel \
lz4-devel \
sqlite-devel \
boost-devel \
libuuid-devel \
hwloc-devel \
lua-devel \
libedit-devel \
valgrind-devel \
libs3-devel \
systemd-devel \
libarchive-devel \
pam-devel \
openssh-server \
openssh-clients \
perl-Time-HiRes \
lua-posix \
libfaketime \
cppcheck \
enchant \
aspell \
aspell-en \
sudo \
glibc-langpack-en \
hwloc \
&& yum clean all
ldconfig
ln -fs /usr/local/bin/python3.8 /usr/bin/python3
printf "LANG=C.UTF-8" > /etc/locale.conf
# Assuming installing to /usr
export LD_LIBRARY_PATH=/usr/lib
# Full clone in case...
git clone https://github.com/flux-framework/flux-core ~/flux-core
cd ~/flux-core
./autogen.sh
./configure --prefix=/usr
make
make install
git clone https://github.com/flux-framework/flux-security ~/security
cd ~/security
./autogen.sh
./configure --prefix=/usr
make
make install
ldconfig