[PATCH v2 4/6] containers/templates: Templates for Dockerfiles

Ali Alnubani alialnu at nvidia.com
Wed Oct 19 21:24:08 CEST 2022


> -----Original Message-----
> From: ohilyard at iol.unh.edu <ohilyard at iol.unh.edu>
> Sent: Wednesday, October 19, 2022 3:53 PM
> To: ci at dpdk.org
> Cc: aconole at redhat.com; Ali Alnubani <alialnu at nvidia.com>; Owen Hilyard
> <ohilyard at iol.unh.edu>
> Subject: [PATCH v2 4/6] containers/templates: Templates for Dockerfiles
> 
> From: Owen Hilyard <ohilyard at iol.unh.edu>
> 
> Adds a variety of extensible templates used to create the Dockerfiles
> for each target. All templates inherit from base, and most distros and
> distro families have their own templates that are used to define common
> functionality. Multiple versions of a distro may use a single template
> if they are similar enough (ex: fedora).
> 
> Signed-off-by: Owen Hilyard <ohilyard at iol.unh.edu>
> ---
[..]
> diff --git
> a/containers/template_engine/templates/containers/base.dockerfile.j2
> b/containers/template_engine/templates/containers/base.dockerfile.j2
> new file mode 100644
> index 0000000..c6194e9
> --- /dev/null
> +++ b/containers/template_engine/templates/containers/base.dockerfile.j2
> @@ -0,0 +1,81 @@
[..]
> +# install libabigail
> +{% block install_libabigail %}
> +COPY libabigail libabigail
> +RUN --mount=type=cache,target=/ccache cd libabigail && mkdir build &&
> autoreconf -i && cd build && ../configure --prefix=/usr/local && make all
> install && \
> +    ldconfig && cd .. && rm -rf libabigail

Current directory is /libabigail/build/. You need to go back another directory before executing "rm -rf libabigail".

$ podman run -it --rm localhost/ubuntu20.04_compile
$ du -chs /libabigail/
1.9G    /libabigail/
1.9G    total

By the way, do we have to build libabigail when DPDK_CI_CONTAINERS_BUILD_ABI is disabled?

> +{% endblock install_libabigail %}
[..]


More information about the ci mailing list