mirror of
https://github.com/hanzoai/gateway.git
synced 2026-10-30 15:04:44 +00:00
- 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)
28 lines
578 B
Bash
Executable File
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" |