refactor(infra): remove proxy-stripping sed from setup.sh — Dockerfiles are clean at source

This commit is contained in:
saravanakumardb1 2026-03-24 11:17:02 -07:00
parent c8a196de58
commit 52b424937a

View File

@ -289,26 +289,9 @@ phase3_clone() {
fi
done
# ── Strip corporate proxy from Dockerfiles ──────────────────────────
# Product Dockerfiles have hardcoded AT&T corporate proxy ENVs that
# would break builds on any non-corporate network (including Azure VMs).
# Strip them since we don't need a proxy on the VM.
log " Stripping corporate proxy from Dockerfiles..."
local patched=0
for df in "${INSTALL_DIR}"/*/backend/Dockerfile "${INSTALL_DIR}"/*/web/Dockerfile "${INSTALL_DIR}"/learning_multimodal_memory_agents/mindlyst-native/web/Dockerfile "${INSTALL_DIR}"/learning_voice_ai_agent/user-dashboard-web/Dockerfile; do
[ -f "$df" ] || continue
if grep -q 'cso\.proxy\.att\.com' "$df" 2>/dev/null; then
sed -i \
-e '/HTTP_PROXY=http:\/\/cso\.proxy/d' \
-e '/HTTPS_PROXY=http:\/\/cso\.proxy/d' \
-e '/NO_PROXY=/d' \
-e '/jfrog-pkg-proxy.*\\$/d' \
-e 's| && npm config set registry https://jfrog-pkg-proxy[^ ]*||' \
"$df"
patched=$((patched + 1))
fi
done
ok " Patched ${patched} Dockerfiles (removed corporate proxy)."
# NOTE: Corporate proxy was removed from all Dockerfiles at source
# (commit fix(docker) across all 10 product repos + dashboards).
# No runtime sed stripping needed.
ok "Phase 3 complete. All repos in ${INSTALL_DIR}/"
}