-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sh
157 lines (133 loc) · 3.89 KB
/
config.sh
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
#!/bin/bash
#
# This file contains environment variables used in:
# - scripts/build-ovis-binaries.sh
# - recipes/ldms-dev/docker-build.sh
# - recipes/ldms-samp/docker-build.sh
# - recipes/ldms-agg/docker-build.sh
# - recipes/ldms-ui/docker-build.sh
# - recipes/ldms-grafana/docker-build.sh
#
# The *_BRANCH values must be a branch name or a full 40-hex commit ID.
# All relative paths in this file is relative to top source dir (this directory)
# Path to ovis binaries (built by or to be built by
# `scripts/build-ovis-binaries.sh`)
OVIS=ovis
ARCH=$(uname -m)
# translate Linux arch into docker-world arch
case "${ARCH}" in
x86_64 )
ARCH=amd64
;;
aarch64 )
ARCH=arm64
;;
esac
export BUILD_TAG=OVIS-4-${ARCH}
MANIFEST_SRC_TAG=OVIS-4
MANIFEST_DST_TAG=OVIS-4
MANIFEST_IMAGES=(
ovishpc/ldms-{samp,agg}
ovishpc/ldms-dev
# ovishpc/ldms-maestro
ovishpc/ldms-{web-svc,grafana}
ovishpc/ldms-storage
)
MANIFEST_ARCHS=(
arm64
amd64
# ppc64le
)
############################################
# ---- scripts/build-ovis-binaries.sh ---- #
############################################
# OVIS git repository and branch to check out from
OVIS_REPO=https://github.com/ovis-hpc/ovis
OVIS_BRANCH=OVIS-4
# SOS git repository and branch to check out from
SOS_REPO=https://github.com/ovis-hpc/sos
SOS_BRANCH=SOS-6
# Maestro git repository and branch to check out from
#MAESTRO_REPO=https://github.com/ovis-hpc/maestro
MAESTRO_REPO=https://github.com/ovis-hpc/maestro
MAESTRO_BRANCH=master
# The name of the container for building OVIS binaries. This can be anything.
BUILD_CONT=ldms-cont-ovis-build
# The build image containing OVIS build prerequisites.
BUILD_IMG=ovishpc/ldms-dev:${BUILD_TAG}
# OVIS prefix INSIDE the container. Please do not change this.
PREFIX=/opt/ovis
#MAKE_INSTALL="make install-strip"
MAKE_INSTALL="make install"
# configure OPTIONS for SOS other than --prefix (*** This is a bash array ***)
SOS_OPTIONS=(
CFLAGS=\"-ggdb3\"
)
# configure OPTIONS for OVIS other than --prefix (*** This is a bash array ***)
OVIS_OPTIONS=(
--enable-python
--enable-etc
--enable-doc
--enable-doc-man
# tests
--enable-zaptest
--enable-ldms-test
--enable-test_sampler
--enable-list_sampler
--enable-record_sampler
# extra xprt
--enable-rdma
# auth
--enable-munge
# stores
--enable-sos
--with-sos=${PREFIX}
--enable-store-app
--with-kafka=yes
# samplers
--enable-tutorial-sampler
--enable-tutorial-store
--enable-app-sampler
--enable-papi
CFLAGS=\"-ggdb3\"
)
# ---- UI components ---- #
PREFIX_UI=${PREFIX}/ui
#NUMSOS_REPO=https://github.com/nick-enoent/numsos
#NUMSOS_BRANCH=b9d1742fe769c49216efa8c35624123e5b995926
NUMSOS_REPO=https://github.com/narategithub/numsos
NUMSOS_BRANCH=edd4522f5c63f65f0d36dd6a87299561fafc85ff
NUMSOS_OPTIONS=()
SOSDBUI_REPO=https://github.com/nick-enoent/sosdb-ui
SOSDBUI_BRANCH=500069d5388fc8d68fe9ae0d6b847c8ce1da95c0
SOSDBUI_OPTIONS=()
SOSDBGRAFANA_REPO=https://github.com/nick-enoent/sosdb-grafana
SOSDBGRAFANA_BRANCH=e5eb5347f3864e2e3447e996cdbe28b8e74b2bb6
#SOSDBGRAFANA_BRANCH=72f25ad0f2ca98eccb00e5599b8cf669a38276fc
SOSDBGRAFANA_OPTIONS=()
#####################################
# ---- scripts/build-dsosds.sh ---- #
#####################################
# ---- dsos data source grafana plugin ---- #
DSOSDS=dsosds # the dsosds build dir relative to the top dir
#DSOSDS_REPO=https://github.com/narategithub/dsosds
DSOSDS_REPO=https://github.com/nick-enoent/dsosds
#DSOSDS_BRANCH=1910e9a6d832b2114ab4421bbb61ea4de95b004d
DSOSDS_BRANCH=7cb80504974a258bcec2752755fe081d36932182
DSOSDS_BUILD_CONT=dsosds-build
DSOSDS_BUILD_IMG=ovishpc/ldms-dev:${BUILD_TAG}
PUSH_SIGN_LIST=(
ovishpc/ldms-dev
ovishpc/ldms-samp
ovishpc/ldms-agg
# ovishpc/ldms-maestro
ovishpc/ldms-web-svc
ovishpc/ldms-grafana
ovishpc/ldms-storage
)
#
if [[ -f passphrase.sh ]]; then
# This shall contain DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE env var
source passphrase.sh
export DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE
fi