Commit c03cd50d authored by guillecxb's avatar guillecxb
Browse files

install required tools

parent c7100894
Loading
Loading
Loading
Loading
Loading
+6 −6
Original line number Original line Diff line number Diff line
@@ -9,6 +9,12 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SDK_SCRIPT="$SCRIPT_DIR/test_sdk.sh"
SDK_SCRIPT="$SCRIPT_DIR/test_sdk.sh"
LOG_FILE="/tmp/capif_setup.log"
LOG_FILE="/tmp/capif_setup.log"



# === Ensure required tools are installed ===
echo "📦 Installing dependencies (git + jq)..."
apt-get update -y
apt-get install -y git jq

echo "🚀 [1/5] Preparing temporary environment for CAPIF at $CAPIF_DIR..."
echo "🚀 [1/5] Preparing temporary environment for CAPIF at $CAPIF_DIR..."
rm -rf "$CAPIF_DIR"
rm -rf "$CAPIF_DIR"
git clone "$CAPIF_REPO_URL" "$CAPIF_DIR" > "$LOG_FILE" 2>&1
git clone "$CAPIF_REPO_URL" "$CAPIF_DIR" > "$LOG_FILE" 2>&1
@@ -84,12 +90,6 @@ done
echo ""
echo ""
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}" | grep capif || true
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}" | grep capif || true


# === Install jq ===
echo "📦 Installing jq..."
apt-get update && apt-get install -y jq
echo $?


# === Create CAPIF user once the system is up ===
# === Create CAPIF user once the system is up ===
echo ""
echo ""
echo "👤 [3.1] Authenticating against CAPIF Register to create user..."
echo "👤 [3.1] Authenticating against CAPIF Register to create user..."