mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-06 04:52:39 +00:00
🔥 Delete the module loader Dockerfile
This commit is contained in:
@@ -1,33 +0,0 @@
|
|||||||
### Builder image
|
|
||||||
ARG TARGETARCH=amd64
|
|
||||||
FROM ${TARGETARCH}/debian:bullseye AS builder
|
|
||||||
|
|
||||||
ARG KERNEL_VERSION
|
|
||||||
|
|
||||||
RUN apt-get update
|
|
||||||
RUN apt-get install -y -q \
|
|
||||||
curl \
|
|
||||||
build-essential \
|
|
||||||
linux-headers-${KERNEL_VERSION}
|
|
||||||
|
|
||||||
WORKDIR /work
|
|
||||||
RUN curl https://github.com/ntop/PF_RING/archive/refs/tags/8.4.0.tar.gz -Lo ./pfring.tar.xz && \
|
|
||||||
tar -xf pfring.tar.xz && \
|
|
||||||
mv ./PF_RING-* ./pfring
|
|
||||||
|
|
||||||
WORKDIR /work/pfring/kernel
|
|
||||||
ENV KERNELRELEASE=${KERNEL_VERSION}
|
|
||||||
RUN make
|
|
||||||
|
|
||||||
|
|
||||||
### The shipped image
|
|
||||||
ARG TARGETARCH=amd64
|
|
||||||
FROM ${TARGETARCH}/debian:bullseye
|
|
||||||
|
|
||||||
ARG KERNEL_VERSION
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y kmod
|
|
||||||
|
|
||||||
COPY --from=builder /work/pfring/kernel/pf_ring.ko /opt/lib/modules/${KERNEL_VERSION}/
|
|
||||||
|
|
||||||
RUN depmod -b /opt ${KERNEL_VERSION}
|
|
@@ -1,5 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# Build it on x86_64
|
|
||||||
docker build . -t kubeshark/module-loader:latest --build-arg KERNEL_VERSION="5.10.0-23-amd64" && docker push kubeshark/module-loader:latest
|
|
Reference in New Issue
Block a user