summaryrefslogtreecommitdiffstats
path: root/clover/clovisor/build-docker
diff options
context:
space:
mode:
authorStephen Wong <stephen.kf.wong@gmail.com>2018-09-11 23:37:33 +0000
committerStephen Wong <stephen.kf.wong@gmail.com>2018-11-01 06:42:03 +0000
commit56b8e050641fef01ada624b1eb715aa8177bb5bd (patch)
tree09c02d64ae53e2f0f25d49443dfb8ca78813c6e9 /clover/clovisor/build-docker
parent257e0d846ade5b1051c3734ad6a2d5bea4ce4ca7 (diff)
CLOVER-43: Initial commit for Clovisor
Part of Clover's initial task (during project proposal) is to explore cloud native network tracing tools. Clover the project proposes Clovisor as a way for Clover to use the IOvisor (https://www.iovisor.org/) to perform network tracing. This is the first commit of this module Please note that the BPF code used in this commit were only tested with Linux kernel 4.14+ --- hence, if ubuntu is used, and one prefers LTS, the requirement is 18.04+ A different patch will track the redis and k8s API server watcher code Also, a design doc will be added in the future (TBD) Signed-off-by: Stephen Wong <stephen.kf.wong@gmail.com> Change-Id: I30d9f9d474b8703097c470d39628e86bc788f9b6
Diffstat (limited to 'clover/clovisor/build-docker')
-rwxr-xr-xclover/clovisor/build-docker18
1 files changed, 18 insertions, 0 deletions
diff --git a/clover/clovisor/build-docker b/clover/clovisor/build-docker
new file mode 100755
index 0000000..c724c8c
--- /dev/null
+++ b/clover/clovisor/build-docker
@@ -0,0 +1,18 @@
+#!/bin/bash
+#
+# Copyright (c) Authors of Clover
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+if [ -z "$1" ]
+ then
+ kernel_ver=`uname -r`
+ else
+ kernel_ver=$1
+fi
+cp bin/clovisor .
+docker build --build-arg TARGET_KERNEL_VER=$kernel_ver -t clovisor .
+docker tag clovisor localhost:5000/clovisor
+docker push localhost:5000/clovisor