From 4f776151613b85ab079b7debc8e7272cb3b228e7 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 8 Jul 2021 09:39:36 -0400 Subject: [PATCH] Provide a sample container build --- container/Dockerfile | 7 +++++++ container/runconfluent.sh | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 container/Dockerfile create mode 100644 container/runconfluent.sh diff --git a/container/Dockerfile b/container/Dockerfile new file mode 100644 index 00000000..1d9ab420 --- /dev/null +++ b/container/Dockerfile @@ -0,0 +1,7 @@ +FROM almalinux:8 +RUN ["yum", "-y", "update"] +RUN ["rpm", "-ivh", "https://hpc.lenovo.com/yum/latest/el8/x86_64/lenovo-hpc-yum-1-1.x86_64.rpm"] +RUN ["yum", "-y", "install", "lenovo-confluent", "tftp-server", "openssh-clients", "openssl", "vim-enhanced", "iproute"] +ADD runconfluent.sh /bin/ +CMD ["/bin/bash", "/bin/runconfluent.sh"] + diff --git a/container/runconfluent.sh b/container/runconfluent.sh new file mode 100644 index 00000000..661a4b34 --- /dev/null +++ b/container/runconfluent.sh @@ -0,0 +1,3 @@ +#!/bin/bash +rm -f /var/run/confluent/pid /run/confluent/pid >& /dev/null +/opt/confluent/bin/confluent -f