2025-06-08 16:56:46 +02:00
|
|
|
.PHONY: build build-release build-arm build-x86 test clean
|
|
|
|
|
2025-01-11 13:32:06 -05:00
|
|
|
build-release:
|
2025-01-07 22:41:35 -05:00
|
|
|
@if [ -z "$(tag)" ]; then \
|
2025-06-08 16:56:46 +02:00
|
|
|
echo "Error: tag is required. Usage: make build-release tag=<tag>"; \
|
2025-01-07 22:41:35 -05:00
|
|
|
exit 1; \
|
|
|
|
fi
|
2025-06-04 17:17:18 -04:00
|
|
|
docker buildx build --platform linux/arm64,linux/amd64 -t fosrl/pangolin:latest -f Dockerfile --push .
|
|
|
|
docker buildx build --platform linux/arm64,linux/amd64 -t fosrl/pangolin:$(tag) -f Dockerfile --push .
|
2025-06-04 12:02:07 -04:00
|
|
|
docker buildx build --platform linux/arm64,linux/amd64 -t fosrl/pangolin:postgresql-latest -f Dockerfile.pg --push .
|
|
|
|
docker buildx build --platform linux/arm64,linux/amd64 -t fosrl/pangolin:postgresql-$(tag) -f Dockerfile.pg --push .
|
2024-10-20 12:55:28 -04:00
|
|
|
|
2024-10-27 23:36:04 -04:00
|
|
|
build-arm:
|
2025-01-04 16:30:09 -05:00
|
|
|
docker buildx build --platform linux/arm64 -t fosrl/pangolin:latest .
|
2024-10-27 23:36:04 -04:00
|
|
|
|
|
|
|
build-x86:
|
2025-01-07 22:41:35 -05:00
|
|
|
docker buildx build --platform linux/amd64 -t fosrl/pangolin:latest .
|
2024-12-01 19:45:36 -05:00
|
|
|
|
|
|
|
build:
|
2025-01-04 16:30:09 -05:00
|
|
|
docker build -t fosrl/pangolin:latest .
|
2024-10-20 12:55:28 -04:00
|
|
|
|
2024-09-28 18:17:37 -04:00
|
|
|
test:
|
2025-01-04 16:30:09 -05:00
|
|
|
docker run -it -p 3000:3000 -p 3001:3001 -p 3002:3002 -v ./config:/app/config fosrl/pangolin:latest
|
2024-09-28 18:18:06 -04:00
|
|
|
|
|
|
|
clean:
|
2024-10-06 11:13:50 -04:00
|
|
|
docker rmi pangolin
|