1515
1616set -e
1717
18+ echo " Updating ca-certificates..."
19+ apt-get update && apt-get install -y ca-certificates
20+
1821if ! command -v pip3 & > /dev/null || ! command -v curl & > /dev/null || ! command -v docker & > /dev/null || ! command -v git & > /dev/null; then
1922 echo " Installing basic dependencies..."
20- apt-get update && apt-get install -y python3-pip curl git ca-certificates
23+ apt-get install -y python3-pip curl git
24+ fi
25+
26+ if [ -f /var/cache/proxy.crt ]; then
27+ echo " Using proxy certificate for Git..."
28+ git config --global http.sslCAinfo /var/cache/proxy.crt
29+ else
2130 git config --global http.sslCAinfo /etc/ssl/certs/ca-certificates.crt
31+ fi
2232
2333 if ! command -v docker & > /dev/null; then
2434 echo " Installing docker CLI..."
@@ -36,7 +46,6 @@ if ! command -v pip3 &> /dev/null || ! command -v curl &> /dev/null || ! command
3646 mv docker /usr/local/bin/
3747 rm -f docker.tgz
3848 fi
39- fi
4049
4150# Avoid virtualenv/pip trying to download/upgrade tools from PyPI on host
4251export VIRTUALENV_NO_DOWNLOAD=1
@@ -206,6 +215,21 @@ if [ "${DRY_RUN}" = "true" ]; then
206215 VERSION=" 0.1.2"
207216 fi
208217 popd
218+
219+ # TEMPORARY: run clone to debug SSL issue
220+ echo " [DRY RUN] TEMPORARY: Testing git clone to debug SSL issue"
221+ pushd " ${REPO_DIR} "
222+ echo " DEBUG: Current date/time:"
223+ date
224+ echo " DEBUG: Testing curl to GitHub (verbose):"
225+ curl -vI https://github.com || true
226+ echo " DEBUG: Rebuilding ca-certificates..."
227+ update-ca-certificates --fresh || true
228+ echo " DEBUG: Git config:"
229+ git config --list || true
230+ echo " DEBUG: Running git clone with GIT_CURL_VERBOSE=1:"
231+ GIT_CURL_VERBOSE=1 git clone https://github.com/cel-expr/cel-python.git
232+ popd
209233else
210234 pushd " ${REPO_DIR} "
211235 git clone https://github.com/cel-expr/cel-python.git
0 commit comments