-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (14 loc) · 798 Bytes
/
Copy pathMakefile
File metadata and controls
20 lines (14 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
IMAGE ?= rustcfml:local
VERSION ?= $(shell sed -nE 's/^ARG RUSTCFML_VERSION=(v[0-9.]+).*/\1/p' Dockerfile | head -1)
.PHONY: build build-all run smoke test
build: ## native arch, loaded into the local docker
docker build --build-arg RUSTCFML_VERSION=$(VERSION) -t $(IMAGE) .
build-all: ## both arches (no load; proves the multi-platform build)
docker buildx build --platform linux/amd64,linux/arm64 --build-arg RUSTCFML_VERSION=$(VERSION) -t $(IMAGE) .
run: build ## serve examples/hello on http://localhost:8500
docker run --rm -p 8500:8500 -v "$(PWD)/examples/hello/webroot:/app" $(IMAGE)
smoke: build ## version, extension listing, one request
docker run --rm $(IMAGE) --version
docker run --rm $(IMAGE) ext list
./tests/smoke.sh $(IMAGE)
test: smoke