-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (32 loc) · 997 Bytes
/
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
SHELL = /bin/bash
.ONESHELL:
.DEFAULT_GOAL: jar.build
jar.build:
@sh gradlew buildFatJar
native.build:
@native-image \
-H:ConfigurationFileDirectories=native/configuration \
-H:+InstallExitHandlers \
-H:+ReportUnsupportedElementsAtRuntime \
-H:+ReportExceptionStackTraces \
-R:MaximumHeapSizePercent=90 \
--pgo=native/default.iprof \
--gc=serial \
--no-fallback \
--enable-sbom \
--initialize-at-build-time=io.ktor,kotlin,org.slf4j,ch.qos.logback,kotlinx.serialization \
-jar build/libs/rinha-2024-q1-all.jar \
native/rinha-2024-q1
native.start:
@PORT=9999 native/rinha-2024-q1
docker.stats:
@docker stats --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.MemPerc}}"
docker.up:
@docker compose down
@docker compose up
stress.it:
@sh executar-teste-local.sh
docker.build:
@docker buildx build --platform linux/amd64 -t lsfratel/rinha-2024-q1:latest .
docker.push:
@docker push lsfratel/rinha-2024-q1