diff options
author | Chris White <chwhite@redhat.com> | 2023-12-04 22:58:40 +0000 |
---|---|---|
committer | John Kacur <jkacur@redhat.com> | 2024-01-23 15:33:19 -0500 |
commit | ddc9e44f4f7666a4caf26837d30e8d06021a6572 (patch) | |
tree | 957ffb74e45b34141dd3c6878933b098d1aeaf8a | |
parent | 326e7c65f07a6caee814eb1e385704aa1b5b129e (diff) | |
download | rt-tests-ddc9e44f4f7666a4caf26837d30e8d06021a6572.tar.gz |
rt-tests: Add interactive source-to-image Dockerfile
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@redhat.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r-- | Dockerfile | 26 |
1 files changed, 26 insertions, 0 deletions
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"] |