Build executable of probes

pull/813/head
kompotkot 2023-07-05 12:06:59 +00:00
rodzic b92342e233
commit 2c51435cf1
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -63,6 +63,14 @@ if [ ! -d "${CONFIGS_DIR}" ]; then
fi fi
cp "${SCRIPT_DIR}/configs/${ENGINE_CLEAN_CALL_REQUESTS}" "${CONFIGS_DIR}/${ENGINE_CLEAN_CALL_REQUESTS}" cp "${SCRIPT_DIR}/configs/${ENGINE_CLEAN_CALL_REQUESTS}" "${CONFIGS_DIR}/${ENGINE_CLEAN_CALL_REQUESTS}"
echo
echo
echo -e "${PREFIX_INFO} Building executable probes application with Go"
EXEC_DIR=$(pwd)
cd "${APP_DIR}/probes"
HOME=/home/ubuntu /usr/local/go/bin/go build -o "${APP_DIR}/probes/probes" "${APP_DIR}/probes/cmd/probes/*.go"
cd "${EXEC_DIR}"
echo echo
echo echo
echo -e "${PREFIX_INFO} Replacing existing probes service and timer with: ${PROBES_SERVICE_FILE}" echo -e "${PREFIX_INFO} Replacing existing probes service and timer with: ${PROBES_SERVICE_FILE}"