Skip to content

Commit 3074b62

Browse files
committed
Add pyrefly and fix docker-compose for sonarqube
Signed-off-by: Mihai Criveti <[email protected]>
1 parent 1309539 commit 3074b62

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
mcp-servers/go/fast-time-server/Dockerfile
12
Dockerfile
23
Dockerfile.*
34
Containerfile.*

Makefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -658,8 +658,9 @@ sonar-deps-podman:
658658
python3 -m pip install --quiet podman-compose
659659

660660
sonar-deps-docker:
661-
@echo "🔧 Ensuring docker-compose is available …"
662-
@which docker-compose >/dev/null || python3 -m pip install --quiet docker-compose
661+
@echo "🔧 Ensuring $(COMPOSE_CMD) is available …"
662+
@command -v $(firstword $(COMPOSE_CMD)) >/dev/null || \
663+
python3 -m pip install --quiet docker-compose
663664

664665
## ─────────── Run SonarQube server (compose) ────────────────────────────
665666
sonar-up-podman:
@@ -669,10 +670,11 @@ sonar-up-podman:
669670
@sleep 30 && podman ps | grep sonarqube || echo "⚠️ Server may still be starting."
670671

671672
sonar-up-docker:
672-
@echo "🚀 Starting SonarQube (v$(SONARQUBE_VERSION)) with docker-compose"
673+
@echo "🚀 Starting SonarQube (v$(SONARQUBE_VERSION)) with $(COMPOSE_CMD)"
673674
SONARQUBE_VERSION=$(SONARQUBE_VERSION) \
674-
docker-compose -f podman-compose-sonarqube.yaml up -d
675-
@sleep 30 && docker ps | grep sonarqube || echo "⚠️ Server may still be starting."
675+
$(COMPOSE_CMD) -f podman-compose-sonarqube.yaml up -d
676+
@sleep 30 && $(COMPOSE_CMD) ps | grep sonarqube || \
677+
echo "⚠️ Server may still be starting."
676678

677679
## ─────────── Containerised Scanner CLI (Docker / Podman) ───────────────
678680
sonar-submit-docker:

0 commit comments

Comments
 (0)