[PATCH] rt-tests: Add interactive source-to-image Dockerfile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This Dockerfile sets up a base image for rt-tests, copies the code,
and installs it, providing an interactive container for testing the
various applications packaged.

Signed-off-by: Chris White <chwhite@xxxxxxxxxx>
---
 Dockerfile | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 Dockerfile

diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..92f680e
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,26 @@
+# Use CentOS Stream 9 as base image
+FROM centos:stream9
+
+# Install required packages for RT-Tests
+RUN dnf -y update && \
+    dnf install -y \
+        gcc \
+        make \
+        numactl-devel \
+        util-linux \
+        git && \
+    git clone https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git /opt/rt-tests && \
+    cd /opt/rt-tests && \
+    make && \
+    make install && \
+    dnf remove -y \
+        git \
+        make && \
+    dnf clean all
+
+
+# Set the working directory to the RT-Tests directory
+WORKDIR /opt/rt-tests
+
+# Set the entrypoint to a shell
+ENTRYPOINT ["/bin/bash"]
-- 
2.31.1





[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux