From 6b4f43b4a215735e1454050b5fbce288a9c26d1c Mon Sep 17 00:00:00 2001 From: reyesj2 <94730068+reyesj2@users.noreply.github.com> Date: Tue, 2 Apr 2024 09:24:24 -0400 Subject: [PATCH 1/3] Initial kafka dockerfile Signed-off-by: reyesj2 <94730068+reyesj2@users.noreply.github.com> --- so-kafka/Dockerfile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 so-kafka/Dockerfile diff --git a/so-kafka/Dockerfile b/so-kafka/Dockerfile new file mode 100644 index 0000000..bd73abf --- /dev/null +++ b/so-kafka/Dockerfile @@ -0,0 +1,40 @@ +# Copyright Security Onion Solutions, LLC + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +FROM ghcr.io/security-onion-solutions/oraclelinux:9 + +LABEL maintainer "Security Onion Solutions, LLC" +LABEL description="Kafka running in a docker container for use with Security Onion" + +ARG KAFKA_DOWNLOAD=https://downloads.apache.org/kafka/3.5.1/ +ARG KAFKA_TARNAME=kafka_2.13-3.5.1 + +RUN dnf update -y && \ + dnf install -y java-11-openjdk java-11-openjdk-devel curl && \ + dnf clean all + +WORKDIR / + +RUN groupadd --gid 960 kafka && \ + adduser --uid 960 --gid 960 kafka + +RUN curl -O ${KAFKA_DOWNLOAD}${KAFKA_TARNAME}.tgz && \ + tar -xzf ${KAFKA_TARNAME}.tgz + +RUN rm -f ${KAFKA_TARNAME}.tgz && \ + mv ${KAFKA_TARNAME} kafka && \ + chown -R 960:960 kafka + +ENTRYPOINT ["/kafka/bin/kafka-server-start.sh", "/kafka/config/kraft/server.properties"] From eeff68d96c9e274a3bbcf4b4e17d17edd8e8a883 Mon Sep 17 00:00:00 2001 From: reyesj2 <94730068+reyesj2@users.noreply.github.com> Date: Tue, 2 Apr 2024 09:37:40 -0400 Subject: [PATCH 2/3] Update kafka version Signed-off-by: reyesj2 <94730068+reyesj2@users.noreply.github.com> --- so-kafka/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/so-kafka/Dockerfile b/so-kafka/Dockerfile index bd73abf..9231cd1 100644 --- a/so-kafka/Dockerfile +++ b/so-kafka/Dockerfile @@ -18,8 +18,8 @@ FROM ghcr.io/security-onion-solutions/oraclelinux:9 LABEL maintainer "Security Onion Solutions, LLC" LABEL description="Kafka running in a docker container for use with Security Onion" -ARG KAFKA_DOWNLOAD=https://downloads.apache.org/kafka/3.5.1/ -ARG KAFKA_TARNAME=kafka_2.13-3.5.1 +ARG KAFKA_DOWNLOAD=https://downloads.apache.org/kafka/3.7.0/ +ARG KAFKA_TARNAME=kafka_2.13-3.7.0 RUN dnf update -y && \ dnf install -y java-11-openjdk java-11-openjdk-devel curl && \ From 6256e0a1b1ddab27558addbd16970ecfb880b7f7 Mon Sep 17 00:00:00 2001 From: reyesj2 <94730068+reyesj2@users.noreply.github.com> Date: Tue, 2 Apr 2024 10:14:30 -0400 Subject: [PATCH 3/3] Update copyright Signed-off-by: reyesj2 <94730068+reyesj2@users.noreply.github.com> --- so-kafka/Dockerfile | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/so-kafka/Dockerfile b/so-kafka/Dockerfile index 9231cd1..81ac6ca 100644 --- a/so-kafka/Dockerfile +++ b/so-kafka/Dockerfile @@ -1,17 +1,7 @@ -# Copyright Security Onion Solutions, LLC - -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one +# or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at +# https://securityonion.net/license; you may not use this file except in compliance with the +# Elastic License 2.0. FROM ghcr.io/security-onion-solutions/oraclelinux:9