Something went wrong. Try again.
A Kubernetes operator that gives a pod its own browser as an MCP server
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445# The checks that CI runs.
.PHONY: testtest: test-go test-sidecar test-deploy
STATICCHECK ?= staticcheck# CI's workflow pod has no C compiler, so it sets RACE empty.RACE ?= -race
.PHONY: test-gotest-go: test -z "$$(gofmt -l .)" || { gofmt -l .; exit 1; } go mod tidy -diff go vet ./... $(STATICCHECK) ./... go test $(RACE) -covermode=atomic -coverprofile=coverage.out ./...
.PHONY: test-sidecartest-sidecar: cd sidecar && npm ci --silent && npm test
KUSTOMIZE ?= kubectl kustomize
.PHONY: test-deploytest-deploy: $(KUSTOMIZE) deploy > /dev/null
# The sidecar's image, with Chrome for Testing at the current stable# version, and the smoke test that proves it before anything pushes it.# CI reads the version from chrome-version and builds the same two# targets with docker buildx, adding OCI labels to each.CHROME_VERSION ?= $(shell curl -fsS --max-time 30 https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions.json | jq -r .channels.Stable.version)PKG_DATE ?= $(shell date -u +%Y%m%d)SIDECAR_IMAGE ?= gofer-sidecar:dev
.PHONY: chrome-versionchrome-version: @echo $(CHROME_VERSION)
.PHONY: sidecar-imagesidecar-image: chrome=$(CHROME_VERSION) \ && docker build --pull --target image --build-arg CHROME_VERSION=$$chrome --build-arg PKG_DATE=$(PKG_DATE) -t $(SIDECAR_IMAGE) sidecar \ && docker build --target test --build-arg CHROME_VERSION=$$chrome --build-arg PKG_DATE=$(PKG_DATE) sidecar