Skip to content

Commit

Permalink
ci: fix local ci errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulguptajss authored and cgrinds committed Aug 8, 2023
1 parent 5918213 commit aff01d0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,10 @@ ifeq ($(origin ci),undefined)
@echo make ci=/path/to/harvest.yml ci-local
@exit 1
endif
-@docker stop $$(docker ps -aq) && docker rm $$(docker ps -aq)
-@docker volume rm harvest_grafana_data harvest_prometheus_data
@cp $(ci) harvest.yml
-@docker stop $$(docker ps -aq) 2>/dev/null || true
-@docker rm $$(docker ps -aq) 2>/dev/null || true
-@docker volume rm harvest_grafana_data harvest_prometheus_data 2>/dev/null || true
@if [ "$(ci)" != "harvest.yml" ]; then cp $(ci) harvest.yml; else echo "Source and destination files are the same, skipping copy"; fi
@./bin/harvest generate docker full --port --output harvest-compose.yml
@docker build -f container/onePollerPerContainer/Dockerfile -t ghcr.io/netapp/harvest:latest . --no-cache --build-arg VERSION=${VERSION}
@docker-compose -f prom-stack.yml -f harvest-compose.yml up -d --remove-orphans
Expand Down

0 comments on commit aff01d0

Please sign in to comment.