-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 1.15 KB
/
Makefile
File metadata and controls
27 lines (21 loc) · 1.15 KB
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
.PHONY: all agent server server-e2e web clean-pin
V=$(shell grep '^NETXMS_VERSION=' build.properties | cut -d= -f2)
PV=$(shell grep '^NETXMS_PACKAGE_VERSION=' build.properties | cut -d= -f2)
all: agent server server-e2e web
agent:
./pin-package-version agent/files/netxms-pin $(PV)
docker build --progress=plain --platform linux/amd64 --build-arg NETXMS_PACKAGE_VERSION=$(PV) -t ghcr.io/netxms/agent:$(V) agent
@rm agent/files/netxms-pin
server:
./pin-package-version server/files/netxms-pin $(PV)
docker build --progress=plain --platform linux/amd64 --build-arg NETXMS_PACKAGE_VERSION=$(PV) -t ghcr.io/netxms/server:$(V) server
@rm server/files/netxms-pin
server-e2e:
./pin-package-version server-e2e/files/netxms-pin $(PV)
docker build --progress=plain --platform linux/amd64 --build-arg NETXMS_PACKAGE_VERSION=$(PV) -t ghcr.io/netxms/server-e2e:$(V) server-e2e
@rm server-e2e/files/netxms-pin
web:
@if [ ! -f web/nxmc-$(V).war ]; then \
curl -L -o web/nxmc-$(V).war https://netxms.org/download/releases/$(shell echo $(V) | cut -d. -f1-2)/nxmc-$(V).war; \
fi
docker build --progress=plain --build-arg NETXMS_VERSION=$(V) -t ghcr.io/netxms/web:$(V) web