-
Notifications
You must be signed in to change notification settings - Fork 43
/
Makefile
48 lines (32 loc) · 1.22 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
e2core:
go build -o .bin/e2core ./main.go
e2core/install:
go install
e2core/static:
go build -o .bin/e2core -tags netgo -ldflags="-extldflags=-static" .
e2core/docker: docker/dev
docker run -v ${PWD}/$(dir):/home/e2core -e e2core_HTTP_PORT=8080 -p 8080:8080 suborbital/e2core:dev e2core start ./example-project/modules.wasm.zip
docker/dev:
docker build . -t suborbital/e2core:dev
docker/dev/multi:
docker buildx build . --platform linux/amd64,linux/arm64 -t e2core:dev
docker/publish:
docker buildx build . --platform linux/amd64,linux/arm64 -t suborbital/e2core:$(version) --push
docker/publish/latest:
docker buildx build . --platform linux/amd64,linux/arm64 -t suborbital/e2core:latest --push
docker/builder:
docker buildx create --use
example-project:
subo build ./example-project --native
test:
RUN_SERVER_TESTS=true go test -v --count=1 -p=1 ./...
test/ci:
go test -v --count=1 -p=1 ./...
lint:
docker compose -f docker-compose-util.yaml up linter
lintfixer:
docker compose -f docker-compose-util.yaml up lintfixer
loadtest:
go run ./testingsupport/load/load-tester.go
.PHONY: build e2core e2core/docker docker/dev docker/dev/multi docker/publish docker/builder example-project test lint \
lint/fix fix-imports