summaryrefslogtreecommitdiffstats
path: root/clover/clovisor/Dockerfile
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/Dockerfile
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/Dockerfile')
-rw-r--r--clover/clovisor/Dockerfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/clover/clovisor/Dockerfile b/clover/clovisor/Dockerfile
new file mode 100644
index 0000000..4df4ee5
--- /dev/null
+++ b/clover/clovisor/Dockerfile
@@ -0,0 +1,17 @@
+FROM ubuntu:18.04
+
+ARG TARGET_KERNEL_VER
+
+RUN set -ex; \
+ echo "deb [trusted=yes] http://repo.iovisor.org/apt/bionic bionic main" > /etc/apt/sources.list.d/iovisor.list; \
+ apt-get update -y; \
+ DEBIAN_FRONTEND=noninteractive apt-get install -y \
+ auditd \
+ bcc-tools \
+ linux-headers-$TARGET_KERNEL_VER \
+ libelf1;
+
+COPY . .
+RUN chmod +x clovisor
+
+CMD ["./clovisor"]