Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

chore(scripts): update build and install scripts

rcourtman98d5a5684ab5
diff --git a/scripts/build-release.sh b/scripts/build-release.sh
index cb470c1ab2..6345cb8c20 100755
--- a/scripts/build-release.sh
+++ b/scripts/build-release.sh
@@ -90,7 +90,7 @@ for target in "${host_agent_order[@]}"; do
./cmd/pulse-agent
done
-# Build for different architectures (server + docker agent + sensor proxy)
+# Build for different architectures (server + agents)
declare -A builds=(
["linux-amd64"]="GOOS=linux GOARCH=amd64"
["linux-arm64"]="GOOS=linux GOARCH=arm64"
@@ -114,15 +114,6 @@ for build_name in "${build_order[@]}"; do
-trimpath \
-o "$BUILD_DIR/pulse-$build_name" \
./cmd/pulse
-
-
-
- # Build temperature proxy binary
- env $build_env go build \
- -ldflags="-s -w -X main.Version=v${VERSION} -X main.BuildTime=${build_time} -X main.GitCommit=${git_commit}" \
- -trimpath \
- -o "$BUILD_DIR/pulse-sensor-proxy-$build_name" \
- ./cmd/pulse-sensor-proxy
done
# Create platform-specific tarballs that include all host agent binaries for download endpoints
@@ -139,7 +130,6 @@ for build_name in "${build_order[@]}"; do
cp "$BUILD_DIR/pulse-$build_name" "$staging_dir/bin/pulse"
cp "$BUILD_DIR/pulse-host-agent-$build_name" "$staging_dir/bin/pulse-host-agent"
- cp "$BUILD_DIR/pulse-sensor-proxy-$build_name" "$staging_dir/bin/pulse-sensor-proxy"
# Copy host agent binaries for every supported platform/architecture
for target in "${host_agent_order[@]}"; do
@@ -171,7 +161,6 @@ for build_name in "${build_order[@]}"; do
cp "scripts/install-host-agent.ps1" "$staging_dir/scripts/install-host-agent.ps1"
cp "scripts/uninstall-host-agent.sh" "$staging_dir/scripts/uninstall-host-agent.sh"
cp "scripts/uninstall-host-agent.ps1" "$staging_dir/scripts/uninstall-host-agent.ps1"
- cp "scripts/install-sensor-proxy.sh" "$staging_dir/scripts/install-sensor-proxy.sh"
cp "scripts/install-docker.sh" "$staging_dir/scripts/install-docker.sh"
cp "scripts/install.sh" "$staging_dir/scripts/install.sh"
[ -f "scripts/install.ps1" ] && cp "scripts/install.ps1" "$staging_dir/scripts/install.ps1"
@@ -201,7 +190,6 @@ for build_name in "${build_order[@]}"; do
cp "$BUILD_DIR/pulse-host-agent-$build_name" "$universal_dir/bin/pulse-host-agent-${build_name}"
cp "$BUILD_DIR/pulse-agent-$build_name" "$universal_dir/bin/pulse-agent-${build_name}"
- cp "$BUILD_DIR/pulse-sensor-proxy-$build_name" "$universal_dir/bin/pulse-sensor-proxy-${build_name}"
done
cp "scripts/install-docker-agent.sh" "$universal_dir/scripts/install-docker-agent.sh"
@@ -209,7 +197,6 @@ cp "scripts/install-container-agent.sh" "$universal_dir/scripts/install-containe
cp "scripts/install-host-agent.ps1" "$universal_dir/scripts/install-host-agent.ps1"
cp "scripts/uninstall-host-agent.sh" "$universal_dir/scripts/uninstall-host-agent.sh"
cp "scripts/uninstall-host-agent.ps1" "$universal_dir/scripts/uninstall-host-agent.ps1"
-cp "scripts/install-sensor-proxy.sh" "$universal_dir/scripts/install-sensor-proxy.sh"
cp "scripts/install-docker.sh" "$universal_dir/scripts/install-docker.sh"
cp "scripts/install.sh" "$universal_dir/scripts/install.sh"
[ -f "scripts/install.ps1" ] && cp "scripts/install.ps1" "$universal_dir/scripts/install.ps1"
@@ -241,28 +228,6 @@ EOF
chmod +x "$universal_dir/bin/pulse"
-cat > "$universal_dir/bin/pulse-sensor-proxy" << 'EOF'
-#!/bin/sh
-# Auto-detect architecture and run appropriate pulse-sensor-proxy binary
-
-ARCH=$(uname -m)
-case "$ARCH" in
- x86_64|amd64)
- exec "$(dirname "$0")/pulse-sensor-proxy-linux-amd64" "$@"
- ;;
- aarch64|arm64)
- exec "$(dirname "$0")/pulse-sensor-proxy-linux-arm64" "$@"
- ;;
- armv7l|armhf)
- exec "$(dirname "$0")/pulse-sensor-proxy-linux-armv7" "$@"
- ;;
- *)
- echo "Unsupported architecture: $ARCH" >&2
- exit 1
- ;;
-esac
-EOF
-chmod +x "$universal_dir/bin/pulse-sensor-proxy"
cat > "$universal_dir/bin/pulse-host-agent" << 'EOF'
#!/bin/sh
@@ -413,7 +378,6 @@ fi
# instead of pulling from main branch (which may have newer, incompatible changes)
echo "Copying install scripts to release directory..."
cp install.sh "$RELEASE_DIR/"
-cp scripts/install-sensor-proxy.sh "$RELEASE_DIR/"
cp scripts/install-docker.sh "$RELEASE_DIR/"
cp scripts/pulse-auto-update.sh "$RELEASE_DIR/"
@@ -421,7 +385,6 @@ cp scripts/pulse-auto-update.sh "$RELEASE_DIR/"
cd "$RELEASE_DIR"
shopt -s nullglob extglob
# Match all tarballs, zip files, exe files, and install scripts
-checksum_files=( *.tar.gz *.zip *.exe install.sh install-sensor-proxy.sh install-docker.sh pulse-auto-update.sh )
if compgen -G "pulse-*.tgz" > /dev/null; then
checksum_files+=( pulse-*.tgz )
fi
diff --git a/scripts/cleanup.sh b/scripts/cleanup.sh
index 74206c4ef9..dfd5259261 100755
--- a/scripts/cleanup.sh
+++ b/scripts/cleanup.sh
@@ -29,7 +29,6 @@ TARGETS=(
"pulse"
"pulse.log"
"pulse-docker-agent"
- "pulse-sensor-proxy"
"pulse-server"
"pulse-test"
"pulse-host-agent"
diff --git a/scripts/hot-dev.sh b/scripts/hot-dev.sh
index 2117fe0505..aeec676097 100755
--- a/scripts/hot-dev.sh
+++ b/scripts/hot-dev.sh
@@ -144,8 +144,6 @@ export FRONTEND_DEV_HOST FRONTEND_DEV_PORT
export PULSE_DEV_API_HOST PULSE_DEV_API_PORT PULSE_DEV_API_URL PULSE_DEV_WS_URL
export ALLOWED_ORIGINS
-# Note: pulse-sensor-proxy is deprecated. Temperature collection now uses host agents.
-
EXTRA_CLEANUP_PORT=$((PULSE_DEV_API_PORT + 1))
# --- Startup Checks ---
diff --git a/scripts/install-docker.sh b/scripts/install-docker.sh
index e2fca18694..d019a465e7 100755
--- a/scripts/install-docker.sh
+++ b/scripts/install-docker.sh
@@ -1,425 +1,16 @@
#!/bin/bash
# install-docker.sh - Turnkey Pulse installation for Docker hosts
-# This script installs pulse-sensor-proxy and generates docker-compose.yml
+# Generates docker-compose.yml and .env
set -euo pipefail
PULSE_IMAGE="${PULSE_IMAGE:-rcourtman/pulse:latest}"
PULSE_PORT="${PULSE_PORT:-7655}"
-PULSE_PROXY_CHANNEL="${PULSE_PROXY_CHANNEL:-stable}"
-DETERMINED_PROXY_VERSION=""
-PROXY_INSTALLER_SOURCE_LABEL="unset"
-PROXY_ARCH_LABEL=""
-
-compute_proxy_arch_label() {
- local arch
- arch=$(uname -m)
- case "$arch" in
- x86_64)
- PROXY_ARCH_LABEL="linux-amd64"
- ;;
- aarch64 | arm64)
- PROXY_ARCH_LABEL="linux-arm64"
- ;;
- armv7l | armhf)
- PROXY_ARCH_LABEL="linux-armv7"
- ;;
- *)
- PROXY_ARCH_LABEL=""
- ;;
- esac
-}
-
-set_github_fallback_url() {
- local ref="$1"
- if [[ -z "$PROXY_ARCH_LABEL" ]]; then
- return
- fi
-
- local base=""
- if [[ "$ref" == "main" ]]; then
- # Use latest release for main branch
- base="https://github.com/rcourtman/Pulse/releases/latest/download/pulse-sensor-proxy-${PROXY_ARCH_LABEL}"
- else
- base="https://github.com/rcourtman/Pulse/releases/download/${ref}/pulse-sensor-proxy-${PROXY_ARCH_LABEL}"
- fi
-
- export PULSE_SENSOR_PROXY_FALLBACK_URL="$base"
-}
-
-EMBEDDED_INSTALLER_ARCHIVE_B64=$(cat <<'EOF'
-H4sICEpe92gAA2luc3RhbGwtc2Vuc29yLXByb3h5LnNoAOw823bbOJLv/Ao0rY3t
-7qFlJ93JrhOlW5HlRCeK7JHsTvdxPDo0CUkcS6SaIO14En/Fvu7X7ZdsFS4kwIsk
-J5PZc+Z08mCbAAqFuqNQwNZ3zasgbF65bGZZWyQIWeLO5w6jIYtiZxlHH+/22Iw4
-pCda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Oj5uFBA0PbLzpv
-BWEoCzq8LN7ozO+nyFkH/c4s7cI/ffon6akPlGXA8wmyr0zBU1jsR1n1kGfR8Efo
-G0jjMtatZhVCikpVodZur049Cg4txKRCE5QsMzw96+sH9f2SUjNC3DSSqn4/Z1Bi
-QCbvApi1u1JG+qfLJ3eZ/AgHq7qVQ0gW5Jy5j9DfLf2QfiPoPL8ekDOxD3HKvQI3
-up6bHHjmuHVIYOjYWok9Wcfe5h0yM8oO3niB7CQ0L/eby6CvOPo0GA7xuoH4bCmA
-gku2hlcWM4oUtD4RVz1wCc5C6/5z0WqojsB3ZLbufwAW3BcGw6AAAA==
-EOF
-)
-
-determine_proxy_release() {
- if [[ -n "${PULSE_PROXY_VERSION:-}" ]]; then
- DETERMINED_PROXY_VERSION="${PULSE_PROXY_VERSION}"
- return 0
- fi
-
- local channel="${PULSE_PROXY_CHANNEL:-stable}"
- local tag=""
- local api_url=""
-
- if command -v curl >/dev/null 2>&1; then
- if [[ "$channel" == "rc" ]]; then
- api_url="https://api.github.com/repos/rcourtman/Pulse/releases"
- tag=$(curl -fsSL --connect-timeout 5 --max-time 15 "$api_url" 2>/dev/null | grep '"tag_name":' | head -1 | sed -E 's/.*"([^"]+)".*/\1/' || true)
- else
- api_url="https://api.github.com/repos/rcourtman/Pulse/releases/latest"
- tag=$(curl -fsSL --connect-timeout 5 --max-time 15 "$api_url" 2>/dev/null | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' || true)
- fi
- fi
-
- if [[ -n "$tag" ]]; then
- DETERMINED_PROXY_VERSION="$tag"
- return 0
- fi
-
- DETERMINED_PROXY_VERSION="main"
- return 1
-}
-
-download_installer_from_local() {
- local destination="$1"
- local base_url="${PULSE_SERVER:-http://localhost:7655}"
- local url="${base_url%/}/api/install/install-sensor-proxy.sh"
-
- if curl --fail --silent --location --connect-timeout 5 --max-time 20 "$url" -o "$destination" 2>/dev/null; then
- chmod +x "$destination"
- PROXY_INSTALLER_SOURCE_LABEL="local"
- export PULSE_SENSOR_PROXY_FALLBACK_URL="${base_url%/}/api/install/pulse-sensor-proxy"
- echo " ✓ Downloaded proxy installer from ${url}"
- return 0
- fi
-
- echo " ⚠️ Unable to download proxy installer from ${url}"
- return 1
-}
-
-download_installer_from_github() {
- local destination="$1"
- determine_proxy_release
- local tag="$DETERMINED_PROXY_VERSION"
- local ref="$tag"
- local attempted=false
-
- if [[ "$tag" == "main" ]]; then
- ref="main"
- fi
-
- if [[ "$tag" != "main" ]]; then
- local asset_url="https://github.com/rcourtman/Pulse/releases/download/${tag}/install-sensor-proxy.sh"
- attempted=true
- if curl --fail --silent --location --connect-timeout 5 --max-time 30 "$asset_url" -o "$destination" 2>/dev/null; then
- chmod +x "$destination"
- PROXY_INSTALLER_SOURCE_LABEL="github:${tag}"
- set_github_fallback_url "$tag"
- echo " ✓ Downloaded proxy installer from ${asset_url}"
- return 0
- fi
- fi
-
- local release_url="https://github.com/rcourtman/Pulse/releases/latest/download/install-sensor-proxy.sh"
- attempted=true
- if curl --fail --silent --location --connect-timeout 5 --max-time 30 "$release_url" -o "$destination" 2>/dev/null; then
- chmod +x "$destination"
- PROXY_INSTALLER_SOURCE_LABEL="github:latest"
- set_github_fallback_url "main"
- echo " ✓ Downloaded proxy installer from ${release_url}"
- return 0
- fi
-
- if [[ "$attempted" == true ]]; then
- echo " ⚠️ Unable to download proxy installer from GitHub (tag=${tag})"
- fi
- return 1
-}
-
-write_embedded_installer() {
- local destination="$1"
-
- if ! command -v base64 >/dev/null 2>&1; then
- echo " ⚠️ base64 command not available; cannot use embedded installer"
- return 1
- fi
-
- if ! command -v gzip >/dev/null 2>&1; then
- echo " ⚠️ gzip command not available; cannot use embedded installer"
- return 1
- fi
-
- local decode_output
- if decode_output=$(printf '%s' "$EMBEDDED_INSTALLER_ARCHIVE_B64" | base64 -d 2>&1 | gzip -dc 2>&1 >"$destination"); then
- chmod +x "$destination"
- PROXY_INSTALLER_SOURCE_LABEL="embedded"
- echo " ✓ Used embedded proxy installer fallback"
- return 0
- fi
-
- echo " ⚠️ Embedded proxy installer fallback failed"
- if [[ -n "$decode_output" ]]; then
- echo " → $decode_output"
- fi
- return 1
-}
-
-download_proxy_installer() {
- local destination="$1"
-
- if download_installer_from_local "$destination"; then
- return 0
- fi
-
- echo " Attempting GitHub fallback..."
- if download_installer_from_github "$destination"; then
- return 0
- fi
-
- echo " Attempting embedded installer fallback..."
- if write_embedded_installer "$destination"; then
- return 0
- fi
-
- return 1
-}
-
-
-# ============================================
-# Helper Functions
-# ============================================
-
-validate_socket() {
- local socket_path="$1"
-
- # Check if it's a socket file
- if [ ! -S "$socket_path" ]; then
- return 1
- fi
-
- # Test if we can connect to it (using timeout to avoid hangs)
- if command -v socat &>/dev/null; then
- if timeout 2 socat -u OPEN:/dev/null UNIX-CONNECT:"$socket_path" 2>/dev/null; then
- return 0
- else
- return 1
- fi
- fi
-
- # If socat not available, assume socket is valid if it exists as a socket
- return 0
-}
# ============================================
# Pre-flight Checks
# ============================================
-compute_proxy_arch_label
-
echo "============================================"
echo " Pulse Turnkey Docker Installation"
echo "============================================"
@@ -457,141 +48,6 @@ if ! docker compose version &> /dev/null; then
echo ""
fi
-# ============================================
-# Socket Detection & Deconfliction
-# ============================================
-
-BIND_MOUNT_SOCKET="/mnt/pulse-proxy/pulse-sensor-proxy.sock"
-LOCAL_SOCKET="/run/pulse-sensor-proxy/pulse-sensor-proxy.sock"
-SOCKET_PATH=""
-SKIP_INSTALLATION=false
-LOCAL_PROXY_EXISTED_AT_START=false
-
-echo "Checking for existing pulse-sensor-proxy..."
-echo ""
-
-# Check for bind-mounted socket (LXC scenario)
-if [ -S "$BIND_MOUNT_SOCKET" ]; then
- echo " Found socket at /mnt/pulse-proxy (bind-mounted from host)"
- if validate_socket "$BIND_MOUNT_SOCKET"; then
- echo " ✓ Socket is functional"
- SOCKET_PATH="/mnt/pulse-proxy"
- SKIP_INSTALLATION=true
-
- # Deconflict: if local proxy also exists, stop it
- if systemctl is-active --quiet pulse-sensor-proxy 2>/dev/null; then
- echo " ⚠️ Found conflicting local pulse-sensor-proxy service"
- echo " Stopping local service to avoid conflicts..."
- systemctl stop pulse-sensor-proxy
- systemctl disable pulse-sensor-proxy 2>/dev/null || true
- fi
- else
- echo " ⚠️ Socket exists but is not responsive - will install local proxy"
- SKIP_INSTALLATION=false
- fi
-fi
-
-# Check for existing local installation
-if [ -S "$LOCAL_SOCKET" ] && [ "$SKIP_INSTALLATION" = false ]; then
- echo " Found socket at /run/pulse-sensor-proxy (local installation)"
- LOCAL_PROXY_EXISTED_AT_START=true
- if validate_socket "$LOCAL_SOCKET"; then
- echo " ✓ Socket is functional - will refresh to update tokens/config"
- SOCKET_PATH="/run/pulse-sensor-proxy"
- # Don't skip installation - always reinstall to refresh tokens
- SKIP_INSTALLATION=false
- else
- echo " ⚠️ Socket exists but is not responsive - will reinstall"
- systemctl stop pulse-sensor-proxy 2>/dev/null || true
- SKIP_INSTALLATION=false
- fi
-fi
-
-# ============================================
-# Proxy Installation (if needed)
-# ============================================
-
-if [ "$SKIP_INSTALLATION" = true ]; then
- echo ""
- echo "✓ Using existing pulse-sensor-proxy at ${SOCKET_PATH}"
- echo ""
-else
- echo " No functional socket found - installing pulse-sensor-proxy..."
- echo ""
-
- # Download and run the proxy installer
- PROXY_INSTALLER="/tmp/install-sensor-proxy-$$.sh"
-
- unset PULSE_SENSOR_PROXY_FALLBACK_URL
-
- if ! download_proxy_installer "$PROXY_INSTALLER"; then
- echo "❌ ERROR: Could not obtain pulse-sensor-proxy installer"
- echo ""
- echo "Sources attempted:"
- echo " • ${PULSE_SERVER:-http://localhost:7655}/api/install/install-sensor-proxy.sh"
- if [[ -n "$DETERMINED_PROXY_VERSION" ]]; then
- echo " • GitHub release/tag: ${DETERMINED_PROXY_VERSION}"
- else
- echo " • GitHub releases (auto-detected)"
- fi
- echo " • Embedded fallback installer"
- echo ""
- echo "Hints:"
- echo " 1. Ensure network connectivity to the Pulse host or GitHub."
- echo " 2. Set PULSE_PROXY_VERSION (e.g. v4.24.0) to pin a specific release."
- echo " 3. Confirm curl is allowed through firewalls/proxies."
- rm -f "$PROXY_INSTALLER"
- exit 1
- fi
-
- case "$PROXY_INSTALLER_SOURCE_LABEL" in
- local)
- # already set during download
- ;;
- github:*)
- # fallback URL set in download helper
- ;;
- *)
- unset PULSE_SENSOR_PROXY_FALLBACK_URL
- ;;
- esac
-
- # Run installer in standalone mode (no container)
- if ! "$PROXY_INSTALLER" --standalone --pulse-server "${PULSE_SERVER:-http://localhost:7655}" --quiet; then
- echo "❌ Proxy installation failed"
- rm -f "$PROXY_INSTALLER"
- exit 1
- fi
-
- rm -f "$PROXY_INSTALLER"
-
- echo ""
- echo "✓ pulse-sensor-proxy installed successfully"
- echo ""
-
- # Validate newly installed socket
- if ! validate_socket "$LOCAL_SOCKET"; then
- echo "⚠️ Warning: Proxy installed but socket is not responsive"
- echo " Temperature monitoring may not work correctly"
- echo ""
- fi
-
- SOCKET_PATH="/run/pulse-sensor-proxy"
-fi
-
-# ============================================
-# Final Socket Validation
-# ============================================
-
-if [ -z "$SOCKET_PATH" ]; then
- echo "❌ ERROR: No functional socket available after installation"
- echo ""
- echo "Please check:"
- echo " 1. systemctl status pulse-sensor-proxy"
- echo " 2. journalctl -u pulse-sensor-proxy -n 50"
- exit 1
-fi
-
# ============================================
# Generate Docker Compose Configuration
# ============================================
@@ -620,14 +76,6 @@ services:
- "${PULSE_PORT:-7655}:7655"
volumes:
- pulse-data:/data
- # Secure temperature monitoring via host-side proxy
-COMPOSE_EOF
-
-# Add socket mount with detected path
-echo " - ${SOCKET_PATH}:/mnt/pulse-proxy:ro" >> "$COMPOSE_FILE"
-
-# Continue compose file
-cat >> "$COMPOSE_FILE" << 'COMPOSE_EOF'
environment:
- TZ=${TZ:-UTC}
healthcheck:
@@ -643,7 +91,6 @@ volumes:
COMPOSE_EOF
echo "✓ Generated docker-compose.yml"
-echo " Socket mount: ${SOCKET_PATH}:/mnt/pulse-proxy:ro"
echo ""
# Create .env file with defaults
@@ -669,8 +116,6 @@ echo "━━━━━━━━━━━━━━━━━━━━━━━━
echo "✅ Installation Complete!"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
-echo "Socket location: ${SOCKET_PATH}"
-echo ""
echo "Start Pulse with:"
echo " docker compose up -d"
echo ""
@@ -682,13 +127,11 @@ echo " --security-opt apparmor=unconfined \\"
echo " --restart unless-stopped \\"
echo " -p ${PULSE_PORT}:7655 \\"
echo " -v pulse-data:/data \\"
-echo " -v ${SOCKET_PATH}:/mnt/pulse-proxy:ro \\"
echo " ${PULSE_IMAGE}"
echo ""
echo "Access Pulse at: http://$(hostname -I | awk '{print $1}'):${PULSE_PORT}"
echo ""
-echo "Features enabled:"
-echo " ✓ Secure temperature monitoring (via host-side proxy)"
-echo " ✓ Automatic restarts"
-echo " ✓ Persistent data storage"
+echo "Notes:"
+echo " - For temperature monitoring, use the unified agent on Proxmox hosts."
+echo " - SSH-based temperature collection from containers is not recommended."
echo ""
diff --git a/scripts/validate-release.sh b/scripts/validate-release.sh
index 7f65a7eba4..a79fced937 100755
--- a/scripts/validate-release.sh
+++ b/scripts/validate-release.sh
@@ -130,13 +130,13 @@ if [ "$SKIP_DOCKER" = false ]; then
# Validate all required scripts exist and are executable
info "Checking installer/uninstaller scripts in /opt/pulse/scripts/..."
- docker run --rm --entrypoint /bin/sh "$IMAGE" -c 'set -euo pipefail; cd /opt/pulse/scripts; required="install-docker-agent.sh install-container-agent.sh install-host-agent.ps1 uninstall-host-agent.sh uninstall-host-agent.ps1 install-sensor-proxy.sh install-docker.sh install.sh"; for f in $required; do [ -f "$f" ] || { echo "missing script $f" >&2; exit 1; }; case "$f" in *.sh|*.ps1) [ -x "$f" ] || { echo "$f not executable" >&2; exit 1; };; esac; done; echo "All scripts present and executable"' || { error "Script validation failed"; exit 1; }
+ docker run --rm --entrypoint /bin/sh "$IMAGE" -c 'set -euo pipefail; cd /opt/pulse/scripts; required="install-docker-agent.sh install-container-agent.sh install-host-agent.ps1 uninstall-host-agent.sh uninstall-host-agent.ps1 install-docker.sh install.sh"; for f in $required; do [ -f "$f" ] || { echo "missing script $f" >&2; exit 1; }; case "$f" in *.sh|*.ps1) [ -x "$f" ] || { echo "$f not executable" >&2; exit 1; };; esac; done; echo "All scripts present and executable"' || { error "Script validation failed"; exit 1; }
success "All installer/uninstaller scripts present and executable"
# Validate all required binaries exist and are non-empty
info "Checking downloadable binaries in /opt/pulse/bin/..."
- docker run --rm --entrypoint /bin/sh "$IMAGE" -c 'set -euo pipefail; cd /opt/pulse/bin; required="pulse pulse-docker-agent pulse-docker-agent-linux-amd64 pulse-docker-agent-linux-arm64 pulse-docker-agent-linux-armv7 pulse-docker-agent-linux-armv6 pulse-docker-agent-linux-386 pulse-host-agent-linux-amd64 pulse-host-agent-linux-arm64 pulse-host-agent-linux-armv7 pulse-host-agent-linux-armv6 pulse-host-agent-linux-386 pulse-host-agent-darwin-amd64 pulse-host-agent-darwin-arm64 pulse-host-agent-windows-amd64.exe pulse-host-agent-windows-amd64 pulse-host-agent-windows-arm64.exe pulse-host-agent-windows-arm64 pulse-host-agent-windows-386.exe pulse-host-agent-windows-386 pulse-agent-linux-amd64 pulse-agent-linux-arm64 pulse-agent-linux-armv7 pulse-agent-linux-armv6 pulse-agent-linux-386 pulse-agent-darwin-amd64 pulse-agent-darwin-arm64 pulse-agent-windows-amd64.exe pulse-agent-windows-amd64 pulse-agent-windows-arm64.exe pulse-agent-windows-arm64 pulse-agent-windows-386.exe pulse-agent-windows-386 pulse-sensor-proxy pulse-sensor-proxy-linux-amd64 pulse-sensor-proxy-linux-arm64 pulse-sensor-proxy-linux-armv7 pulse-sensor-proxy-linux-armv6 pulse-sensor-proxy-linux-386"; for f in $required; do [ -e "$f" ] || { echo "missing binary $f" >&2; exit 1; }; [ -s "$f" ] || { echo "empty binary $f" >&2; exit 1; }; done; [ "$(readlink pulse-host-agent-windows-amd64)" = "pulse-host-agent-windows-amd64.exe" ] || { echo "windows amd64 symlink broken" >&2; exit 1; }; [ "$(readlink pulse-host-agent-windows-arm64)" = "pulse-host-agent-windows-arm64.exe" ] || { echo "windows arm64 symlink broken" >&2; exit 1; }; [ "$(readlink pulse-host-agent-windows-386)" = "pulse-host-agent-windows-386.exe" ] || { echo "windows 386 symlink broken" >&2; exit 1; }; [ "$(readlink pulse-agent-windows-amd64)" = "pulse-agent-windows-amd64.exe" ] || { echo "unified agent windows amd64 symlink broken" >&2; exit 1; }; [ "$(readlink pulse-agent-windows-arm64)" = "pulse-agent-windows-arm64.exe" ] || { echo "unified agent windows arm64 symlink broken" >&2; exit 1; }; [ "$(readlink pulse-agent-windows-386)" = "pulse-agent-windows-386.exe" ] || { echo "unified agent windows 386 symlink broken" >&2; exit 1; }; echo "All binaries present"' || { error "Binary validation failed"; exit 1; }
- success "All downloadable binaries present (39 binaries + 6 Windows symlinks)"
+ docker run --rm --entrypoint /bin/sh "$IMAGE" -c 'set -euo pipefail; cd /opt/pulse/bin; required="pulse pulse-docker-agent pulse-docker-agent-linux-amd64 pulse-docker-agent-linux-arm64 pulse-docker-agent-linux-armv7 pulse-docker-agent-linux-armv6 pulse-docker-agent-linux-386 pulse-host-agent-linux-amd64 pulse-host-agent-linux-arm64 pulse-host-agent-linux-armv7 pulse-host-agent-linux-armv6 pulse-host-agent-linux-386 pulse-host-agent-darwin-amd64 pulse-host-agent-darwin-arm64 pulse-host-agent-windows-amd64.exe pulse-host-agent-windows-amd64 pulse-host-agent-windows-arm64.exe pulse-host-agent-windows-arm64 pulse-host-agent-windows-386.exe pulse-host-agent-windows-386 pulse-agent-linux-amd64 pulse-agent-linux-arm64 pulse-agent-linux-armv7 pulse-agent-linux-armv6 pulse-agent-linux-386 pulse-agent-darwin-amd64 pulse-agent-darwin-arm64 pulse-agent-windows-amd64.exe pulse-agent-windows-amd64 pulse-agent-windows-arm64.exe pulse-agent-windows-arm64 pulse-agent-windows-386.exe pulse-agent-windows-386"; for f in $required; do [ -e "$f" ] || { echo "missing binary $f" >&2; exit 1; }; [ -s "$f" ] || { echo "empty binary $f" >&2; exit 1; }; done; [ "$(readlink pulse-host-agent-windows-amd64)" = "pulse-host-agent-windows-amd64.exe" ] || { echo "windows amd64 symlink broken" >&2; exit 1; }; [ "$(readlink pulse-host-agent-windows-arm64)" = "pulse-host-agent-windows-arm64.exe" ] || { echo "windows arm64 symlink broken" >&2; exit 1; }; [ "$(readlink pulse-host-agent-windows-386)" = "pulse-host-agent-windows-386.exe" ] || { echo "windows 386 symlink broken" >&2; exit 1; }; [ "$(readlink pulse-agent-windows-amd64)" = "pulse-agent-windows-amd64.exe" ] || { echo "unified agent windows amd64 symlink broken" >&2; exit 1; }; [ "$(readlink pulse-agent-windows-arm64)" = "pulse-agent-windows-arm64.exe" ] || { echo "unified agent windows arm64 symlink broken" >&2; exit 1; }; [ "$(readlink pulse-agent-windows-386)" = "pulse-agent-windows-386.exe" ] || { echo "unified agent windows 386 symlink broken" >&2; exit 1; }; echo "All binaries present"' || { error "Binary validation failed"; exit 1; }
+ success "All downloadable binaries present"
# Validate version embedding in Docker image binaries
info "Validating version embedding in Docker image binaries..."
@@ -149,10 +149,6 @@ if [ "$SKIP_DOCKER" = false ]; then
docker run --rm --entrypoint /opt/pulse/bin/pulse-host-agent-linux-amd64 "$IMAGE" --version 2>/dev/null | grep -Fx "$PULSE_TAG" >/dev/null || { error "Host agent version mismatch"; exit 1; }
success "Host agent version: $PULSE_TAG"
- # Sensor proxy binary
- docker run --rm --entrypoint /opt/pulse/bin/pulse-sensor-proxy-linux-amd64 "$IMAGE" version 2>/dev/null | grep -Fx "pulse-sensor-proxy $PULSE_TAG" >/dev/null || { error "Sensor proxy version mismatch"; exit 1; }
- success "Sensor proxy version: $PULSE_TAG"
-
# Docker agent binary (no CLI flag, check binary strings)
docker run --rm --entrypoint /bin/sh -e EXPECTED_TAG="$PULSE_TAG" "$IMAGE" -c 'set -euo pipefail; grep -aF "$EXPECTED_TAG" /opt/pulse/bin/pulse-docker-agent-linux-amd64 >/dev/null' || { error "Docker agent version string not found"; exit 1; }
success "Docker agent version embedded: $PULSE_TAG"
@@ -437,7 +433,7 @@ for arch in "${tar_arches[@]}"; do
tarball="pulse-v${PULSE_VERSION}-${arch}.tar.gz"
# Check binaries (note: tarballs use ./ prefix)
- if ! tar -tzf "$tarball" ./bin/pulse ./bin/pulse-docker-agent ./bin/pulse-host-agent ./bin/pulse-sensor-proxy >/dev/null 2>&1; then
+ if ! tar -tzf "$tarball" ./bin/pulse ./bin/pulse-docker-agent ./bin/pulse-host-agent >/dev/null 2>&1; then
error "$(basename $tarball) missing binaries"
exit 1
fi
@@ -446,7 +442,7 @@ for arch in "${tar_arches[@]}"; do
check_tar_entries_nonempty "$tarball" "${unified_agent_entries[@]}"
# Check scripts
- tar -tzf "$tarball" ./scripts/install-docker-agent.sh ./scripts/install-container-agent.sh ./scripts/install-host-agent.ps1 ./scripts/uninstall-host-agent.sh ./scripts/uninstall-host-agent.ps1 ./scripts/install-sensor-proxy.sh ./scripts/install-docker.sh ./scripts/install.sh >/dev/null 2>&1 || { error "$(basename $tarball) missing scripts"; exit 1; }
+ tar -tzf "$tarball" ./scripts/install-docker-agent.sh ./scripts/install-container-agent.sh ./scripts/install-host-agent.ps1 ./scripts/uninstall-host-agent.sh ./scripts/uninstall-host-agent.ps1 ./scripts/install-docker.sh ./scripts/install.sh >/dev/null 2>&1 || { error "$(basename $tarball) missing scripts"; exit 1; }
# Check VERSION file
tar -tzf "$tarball" ./VERSION >/dev/null 2>&1 || { error "$(basename $tarball) missing VERSION file"; exit 1; }
@@ -519,10 +515,6 @@ success "Extracted pulse binary: $PULSE_TAG"
"$extract_dir/bin/pulse-host-agent" --version 2>/dev/null | grep -Fx "$PULSE_TAG" >/dev/null || { error "Extracted host-agent version mismatch"; exit 1; }
success "Extracted host-agent binary: $PULSE_TAG"
-# Test sensor proxy
-"$extract_dir/bin/pulse-sensor-proxy" version 2>/dev/null | grep -Fx "pulse-sensor-proxy $PULSE_TAG" >/dev/null || { error "Extracted sensor-proxy version mismatch"; exit 1; }
-success "Extracted sensor-proxy binary: $PULSE_TAG"
-
# Test docker agent (no CLI flag)
grep -aF "$PULSE_TAG" "$extract_dir/bin/pulse-docker-agent" >/dev/null || { error "Extracted docker-agent version string not found"; exit 1; }
success "Extracted docker-agent binary contains: $PULSE_TAG"