forked from hastic-zzz/hastic-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (23 loc) · 977 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
.PHONY: rpm deb
all: rpm deb
rpm_node8:
docker run --rm -it -v `pwd`/server:/root/rpmbuild/server \
-v `pwd`/analytics:/root/rpmbuild/analytics \
-v `pwd`/.git:/root/rpmbuild/.git \
-v `pwd`/build/rpmbuild:/root/rpmbuild/rpm \
-v `pwd`/dist/RPMS_8:/root/rpmbuild/RPMS \
-e "NODE_VERSION=v8.0.0" \
-e "RPM_NODE_VERSION=8" \
-e "HASTIC_RELEASE_VERSION=`cat server/package.json| jq -r .version | sed 's/-/_/g'`" \
hastic/rpmbuilder rpmbuild -bb rpm/hastic-server.spec
rpm_node6:
docker run --rm -v `pwd`/server:/root/rpmbuild/server \
-v `pwd`/analytics:/root/rpmbuild/analytics \
-v `pwd`/.git:/root/rpmbuild/.git \
-v `pwd`/build/rpmbuild:/root/rpmbuild/rpm \
-v `pwd`/dist/RPMS_6:/root/rpmbuild/RPMS \
-e "NODE_VERSION=v6.14.0" \
-e "RPM_NODE_VERSION=6" \
-e "HASTIC_RELEASE_VERSION=`cat server/package.json| jq -r .version | sed 's/-/_/g'`" \
hastic/rpmbuilder rpmbuild -bb rpm/hastic-server.spec
rpm: rpm_node8 rpm_node6