Files
gateway/find_glibc.sh
zeekay d725ab0c0c feat: merge KrakenD CE source for from-source builds
- Merge krakend-ce v2.12.1 Go source into gateway repo
- Rename module to github.com/hanzoai/gateway/v2
- Remove upstream usage telemetry (no phoning home)
- Multi-stage Dockerfile: build Go binary from source + bake config
- Update k8s deployments to use registry.hanzo.ai/gateway images
- Add imagePullSecrets for private registry auth
- Combined Makefile with build + deploy targets
- Zero upstream Docker image dependencies (supply chain security)
2026-02-09 20:44:33 -08:00

28 lines
578 B
Bash
Executable File

#!/bin/sh
OS=$(uname)
GLIBC=UNKNOWN-0.0.0
get_os_version() {
. /etc/os-release
os_release="${ID}-${VERSION_ID}"
}
case $OS in
Linux*)
if ldd --version 2>&1 | grep -i musl > /dev/null; then
get_os_version
GLIBC="MUSL-$(ldd --version 2>&1 | grep Version | cut -d\ -f2)_($os_release)"
else
get_os_version
GLIBC="GLIBC-$(ldd --version 2>&1 | grep ^ldd | awk '{print $(NF)}')_($os_release)"
fi
;;
Darwin*)
GLIBC=DARWIN-$(sw_vers | grep ProductVersion: | tr -s '\t' | cut -d$'\t' -f2)
;;
*)
;;
esac
echo "$GLIBC"