summaryrefslogtreecommitdiff
path: root/make-linux.mk
diff options
context:
space:
mode:
authorGrant Limberg <grant.limberg@zerotier.com>2018-09-28 10:55:39 -0700
committerGrant Limberg <grant.limberg@zerotier.com>2018-09-28 10:55:39 -0700
commit417aa9547b4f3abb9009a3dbb66ecf93d3d686f7 (patch)
tree78e86f1a63027323ef4eaa4c67cd2a4c449b4919 /make-linux.mk
parent0510f85a8fe6cba7e6258d534fa49d47f9f8e2a2 (diff)
downloadinfinitytier-417aa9547b4f3abb9009a3dbb66ecf93d3d686f7.tar.gz
infinitytier-417aa9547b4f3abb9009a3dbb66ecf93d3d686f7.zip
Working controller & docker container for GKE
Diffstat (limited to 'make-linux.mk')
-rw-r--r--make-linux.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/make-linux.mk b/make-linux.mk
index 9b128f1d..78ea98de 100644
--- a/make-linux.mk
+++ b/make-linux.mk
@@ -22,6 +22,9 @@ ONE_OBJS+=osdep/LinuxNetLink.o
NLTEST_OBJS+=osdep/LinuxNetLink.o node/InetAddress.o node/Utils.o node/Salsa20.o
NLTEST_OBJS+=nltest.o
+# for central controller builds
+TIMESTAMP=$(shell date +"%Y%m%d%H%M")
+
# Auto-detect miniupnpc and nat-pmp as well and use system libs if present,
# otherwise build into binary as done on Mac and Windows.
ONE_OBJS+=osdep/PortMapper.o
@@ -318,6 +321,9 @@ official: FORCE
central-controller: FORCE
make -j4 LDLIBS="-L/usr/pgsql-10/lib/ -lpq" CXXFLAGS="-I/usr/pgsql-10/include -fPIC" DEFS="-DZT_CONTROLLER_USE_LIBPQ" ZT_OFFICIAL=1 ZT_USE_X64_ASM_ED25519=1 one
+central-controller-docker: central-controller
+ docker build -t gcr.io/zerotier-central/ztcentral-controller:${TIMESTAMP} -f docker/Dockerfile .
+
debug: FORCE
make ZT_DEBUG=1 one
make ZT_DEBUG=1 selftest