Linux-rt-users archive mirror
 help / color / mirror / Atom feed
From: John Kacur <jkacur@redhat.com>
To: Chris White <chwhite@redhat.com>
Cc: linux-rt-users@vger.kernel.org
Subject: Re: [PATCH] rteval: Add interactive source-to-image Dockerfile
Date: Tue, 23 Jan 2024 15:35:25 -0500 (EST)	[thread overview]
Message-ID: <bed0d3cc-9707-fa2d-0eb1-ff5c26de40f3@redhat.com> (raw)
In-Reply-To: <20231204203416.16713-1-chwhite@redhat.com>



On Mon, 4 Dec 2023, Chris White wrote:

> This Dockerfile sets up a base image for rteval, copies the code,
> and installs it, providing an interactive container for testing
> rteval directly.
> 
> Signed-off-by: Chris White <chwhite@redhat.com>
> ---
>  .dockerignore |  1 +
>  Dockerfile    | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 70 insertions(+)
>  create mode 100644 .dockerignore
>  create mode 100644 Dockerfile
> 
> diff --git a/.dockerignore b/.dockerignore
> new file mode 100644
> index 0000000..2d2ecd6
> --- /dev/null
> +++ b/.dockerignore
> @@ -0,0 +1 @@
> +.git/
> diff --git a/Dockerfile b/Dockerfile
> new file mode 100644
> index 0000000..45f6434
> --- /dev/null
> +++ b/Dockerfile
> @@ -0,0 +1,69 @@
> +# Use CentOS Stream 9 as base image
> +FROM centos:stream9
> +
> +ARG KERNEL_VERSION=linux-6.6.1.tar.xz
> +
> +
> +# Copy current directory to /opt/rteval/
> +COPY . /opt/rteval/
> +
> +# Install everything in one layer to shrink the image size
> +# 1: Install needed dependencies and pull kernel source
> +# 2: install rteval and fix bad symlink
> +# 3: Remove uneeded packages and shrink the image
> +RUN dnf -y update && \
> +    dnf install -y \
> +        python3-devel \
> +        python3-lxml \
> +        python3-libxml2 \
> +        python3-dmidecode \
> +        python3-requests \
> +        realtime-tests \
> +        sysstat \
> +        xz \
> +        bzip2 \
> +        tar \
> +        gzip \
> +        m4 \
> +        make \
> +        gawk \
> +        kernel-headers \
> +        sos \
> +        numactl \
> +        gcc \
> +        binutils \
> +        gcc-c++ \
> +        flex \
> +        bison \
> +        bc \
> +        elfutils \
> +        elfutils-libelf-devel \
> +        openssl \
> +        openssl-devel \
> +        stress-ng \
> +        perl-interpreter \
> +        perl-devel \
> +        perl-generators \
> +        libmpc \
> +        libmpc-devel \
> +        dwarves \
> +        wget \
> +        procps-ng && \
> +    cd /opt/rteval && \
> +    wget -P loadsource https://www.kernel.org/pub/linux/kernel/v6.x/${KERNEL_VERSION} && \
> +    make install && \
> +    make clean && \
> +    rm -f /usr/local/bin/rteval && \
> +    ln -s /opt/rteval/rteval-cmd /usr/bin/rteval && \
> +    dnf remove -y \
> +        gcc-c++ \
> +        python3-devel \
> +        perl-devel && \
> +    dnf clean all
> +
> +
> +# Set the working directory to /root
> +WORKDIR /root
> +
> +# Set the entrypoint to a shell
> +ENTRYPOINT ["/bin/bash"]
> -- 

Signed-off-by: John Kacur <jkacur@redhat.com>


      reply	other threads:[~2024-01-23 20:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-04 20:34 [PATCH] rteval: Add interactive source-to-image Dockerfile Chris White
2024-01-23 20:35 ` John Kacur [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bed0d3cc-9707-fa2d-0eb1-ff5c26de40f3@redhat.com \
    --to=jkacur@redhat.com \
    --cc=chwhite@redhat.com \
    --cc=linux-rt-users@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).