mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 19:02:31 +08:00
feat: support openim prom enbels
Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com>
This commit is contained in:
parent
1710db374f
commit
51e6b46ddb
@ -27,7 +27,7 @@ openim::chat::validate() {
|
|||||||
# validate if in path
|
# validate if in path
|
||||||
command -v chat >/dev/null || {
|
command -v chat >/dev/null || {
|
||||||
openim::log::usage "chat must be in your PATH"
|
openim::log::usage "chat must be in your PATH"
|
||||||
openim::log::info "You can use 'hack/install-chat.sh' to install a copy in third_party/."
|
openim::log::info "You can use 'scripts/install-chat.sh' to install a copy in third_party/."
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ openim::chat::validate() {
|
|||||||
version=$(chat --version | grep Version | head -n 1 | cut -d " " -f 3)
|
version=$(chat --version | grep Version | head -n 1 | cut -d " " -f 3)
|
||||||
if [[ $(openim::chat::version "${CHAT_VERSION}") -gt $(openim::chat::version "${version}") ]]; then
|
if [[ $(openim::chat::version "${CHAT_VERSION}") -gt $(openim::chat::version "${version}") ]]; then
|
||||||
openim::log::usage "chat version ${CHAT_VERSION} or greater required."
|
openim::log::usage "chat version ${CHAT_VERSION} or greater required."
|
||||||
openim::log::info "You can use 'hack/install-chat.sh' to install a copy in third_party/."
|
openim::log::info "You can use 'scripts/install-chat.sh' to install a copy in third_party/."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -25,7 +25,7 @@ unset CDPATH
|
|||||||
|
|
||||||
# Until all GOPATH references are removed from all build scripts as well,
|
# Until all GOPATH references are removed from all build scripts as well,
|
||||||
# explicitly disable module mode to avoid picking up user-set GO111MODULE preferences.
|
# explicitly disable module mode to avoid picking up user-set GO111MODULE preferences.
|
||||||
# As individual scripts (like hack/update-vendor.sh) make use of go modules,
|
# As individual scripts (like scripts/update-vendor.sh) make use of go modules,
|
||||||
# they can explicitly set GO111MODULE=on
|
# they can explicitly set GO111MODULE=on
|
||||||
export GO111MODULE=on
|
export GO111MODULE=on
|
||||||
|
|
||||||
|
|||||||
@ -471,9 +471,9 @@ Server binary tarballs are no longer included in the OpenIM final tarball.
|
|||||||
Run release/get-openim-binaries.sh to download client and server binaries.
|
Run release/get-openim-binaries.sh to download client and server binaries.
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Include hack/lib as a dependency for the cluster/ scripts
|
# Include scripts/lib as a dependency for the cluster/ scripts
|
||||||
#mkdir -p "${release_stage}/hack"
|
#mkdir -p "${release_stage}/hack"
|
||||||
#cp -R ""${OPENIM_ROOT}"/hack/lib" "${release_stage}/hack/"
|
#cp -R ""${OPENIM_ROOT}"/scripts/lib" "${release_stage}/scripts/"
|
||||||
|
|
||||||
cp -R "${OPENIM_ROOT}"/{docs,configs,scripts,deployments,init,README.md,LICENSE} "${release_stage}/"
|
cp -R "${OPENIM_ROOT}"/{docs,configs,scripts,deployments,init,README.md,LICENSE} "${release_stage}/"
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ set -o nounset
|
|||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||||
source "${OPENIM_ROOT}/hack/lib/init.sh"
|
source "${OPENIM_ROOT}/scripts/lib/init.sh"
|
||||||
|
|
||||||
openim::golang::setup_env
|
openim::golang::setup_env
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,7 @@ set -o nounset
|
|||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
|
||||||
source "${OPENIM_ROOT}/hack/lib/init.sh"
|
source "${OPENIM_ROOT}/scripts/lib/init.sh"
|
||||||
|
|
||||||
kube::golang::setup_env
|
kube::golang::setup_env
|
||||||
|
|
||||||
|
|||||||
@ -75,7 +75,7 @@ var (
|
|||||||
"pkg/kubectl/cmd/testdata/edit",
|
"pkg/kubectl/cmd/testdata/edit",
|
||||||
// Tools we use for maintaining the code base but not necessarily
|
// Tools we use for maintaining the code base but not necessarily
|
||||||
// ship as part of the release
|
// ship as part of the release
|
||||||
"hack/tools",
|
"scripts/tools",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -61,7 +61,7 @@ var (
|
|||||||
{"template", "template"},
|
{"template", "template"},
|
||||||
{"etcd", "server"},
|
{"etcd", "server"},
|
||||||
{"pod", "node"},
|
{"pod", "node"},
|
||||||
{"hack/", "hack"},
|
{"scripts/", "hack"},
|
||||||
{"e2e", "test"},
|
{"e2e", "test"},
|
||||||
{"integration", "test"},
|
{"integration", "test"},
|
||||||
{"cluster", "cluster"},
|
{"cluster", "cluster"},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user