[k6] Output git build info in k6 log
- output build info in k6 log using actuator endpoint
- use quiet output while pulling images for less log noise
Issue-ID: CPS-2445
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I4464b70650828c842c94677dddcc4d112f9758e0
diff --git a/k6-tests/setup.sh b/k6-tests/setup.sh
index c2cdc20..a4508e1 100755
--- a/k6-tests/setup.sh
+++ b/k6-tests/setup.sh
@@ -15,7 +15,7 @@
# limitations under the License.
#
-docker-compose -f ../docker-compose/docker-compose.yml --profile dmi-stub up -d
+docker-compose -f ../docker-compose/docker-compose.yml --profile dmi-stub up --quiet-pull -d
echo "Waiting for CPS to start..."
READY_MESSAGE="Inventory Model updated successfully"
@@ -28,3 +28,8 @@
echo "Checking logs for container: $CONTAINER_ID"
docker logs "$CONTAINER_ID" -f | grep -m 1 "$READY_MESSAGE" >/dev/null && echo "CPS is ready in container: $CONTAINER_ID" || true
done
+
+# Output build information including git commit info
+echo "Build information:"
+curl http://localhost:8883/actuator/info
+echo