From ec04a59d41ffbac761322cc354a4f08695bb2079 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Fri, 19 Aug 2022 15:12:53 +0200 Subject: [PATCH] add missing libelf dependency to kernel-module-injector image --- dockerfiles/drbd-driver-loader/Dockerfile | 11 +++++++++++ dockerfiles/drbd-driver-loader/Dockerfile.bionic | 2 +- dockerfiles/drbd-driver-loader/Dockerfile.centos7 | 2 +- dockerfiles/drbd-driver-loader/Dockerfile.focal | 2 +- dockerfiles/drbd-driver-loader/Dockerfile.jammy | 2 +- 5 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 dockerfiles/drbd-driver-loader/Dockerfile diff --git a/dockerfiles/drbd-driver-loader/Dockerfile b/dockerfiles/drbd-driver-loader/Dockerfile new file mode 100644 index 0000000..a983774 --- /dev/null +++ b/dockerfiles/drbd-driver-loader/Dockerfile @@ -0,0 +1,11 @@ +FROM ubuntu:bionic + +ARG DRBD_VERSION=9.1.5 + +RUN apt-get update && apt-get upgrade -y && apt-get install -y kmod gnupg wget make gcc patch curl libelf-dev && apt-get clean + +RUN wget https://github.com/LINBIT/drbd/archive/refs/tags/drbd-${DRBD_VERSION}.tar.gz -O /drbd.tar.gz && \ + wget https://github.com/LINBIT/drbd/raw/drbd-${DRBD_VERSION}/docker/entry.sh -O /entry.sh && chmod +x /entry.sh + +ENV LB_HOW compile +ENTRYPOINT [ "/entry.sh" ] diff --git a/dockerfiles/drbd-driver-loader/Dockerfile.bionic b/dockerfiles/drbd-driver-loader/Dockerfile.bionic index 7d3ee5f..9ea948d 100644 --- a/dockerfiles/drbd-driver-loader/Dockerfile.bionic +++ b/dockerfiles/drbd-driver-loader/Dockerfile.bionic @@ -3,7 +3,7 @@ MAINTAINER Roland Kammerer ARG DRBD_VERSION -RUN apt-get update && apt-get upgrade -y && apt-get install -y kmod gnupg wget make gcc patch curl && apt-get clean +RUN apt-get update && apt-get upgrade -y && apt-get install -y kmod gnupg wget make gcc patch curl libelf-dev && apt-get clean RUN wget https://pkg.linbit.com/downloads/drbd/9/drbd-${DRBD_VERSION}.tar.gz -O /drbd.tar.gz && \ wget https://raw.githubusercontent.com/LINBIT/drbd/master/docker/entry.sh -O /entry.sh && chmod +x /entry.sh diff --git a/dockerfiles/drbd-driver-loader/Dockerfile.centos7 b/dockerfiles/drbd-driver-loader/Dockerfile.centos7 index 840b764..7240ffc 100644 --- a/dockerfiles/drbd-driver-loader/Dockerfile.centos7 +++ b/dockerfiles/drbd-driver-loader/Dockerfile.centos7 @@ -4,7 +4,7 @@ MAINTAINER Roland Kammerer ARG DRBD_VERSION RUN yum -y update-minimal --security --sec-severity=Important --sec-severity=Critical && \ - yum install -y wget gcc make patch curl ca-certificates kmod && yum clean all -y + yum install -y wget gcc make patch curl ca-certificates elfutils-libelf-devel kmod && yum clean all -y RUN wget https://pkg.linbit.com/downloads/drbd/9/drbd-${DRBD_VERSION}.tar.gz -O /drbd.tar.gz && \ wget https://raw.githubusercontent.com/LINBIT/drbd/master/docker/entry.sh -O /entry.sh && chmod +x /entry.sh diff --git a/dockerfiles/drbd-driver-loader/Dockerfile.focal b/dockerfiles/drbd-driver-loader/Dockerfile.focal index d2f709b..8b073e2 100644 --- a/dockerfiles/drbd-driver-loader/Dockerfile.focal +++ b/dockerfiles/drbd-driver-loader/Dockerfile.focal @@ -3,7 +3,7 @@ MAINTAINER Roland Kammerer ARG DRBD_VERSION -RUN apt-get update && apt-get upgrade -y && apt-get install -y kmod gnupg wget make gcc patch elfutils curl && apt-get clean +RUN apt-get update && apt-get upgrade -y && apt-get install -y kmod gnupg wget make gcc patch elfutils curl libelf-dev && apt-get clean RUN wget https://pkg.linbit.com/downloads/drbd/9/drbd-${DRBD_VERSION}.tar.gz -O /drbd.tar.gz && \ wget https://raw.githubusercontent.com/LINBIT/drbd/master/docker/entry.sh -O /entry.sh && chmod +x /entry.sh diff --git a/dockerfiles/drbd-driver-loader/Dockerfile.jammy b/dockerfiles/drbd-driver-loader/Dockerfile.jammy index 4d91e21..a0e9561 100644 --- a/dockerfiles/drbd-driver-loader/Dockerfile.jammy +++ b/dockerfiles/drbd-driver-loader/Dockerfile.jammy @@ -2,7 +2,7 @@ FROM ubuntu:jammy ARG DRBD_VERSION -RUN apt-get update && apt-get upgrade -y && apt-get install -y kmod gnupg wget make gcc patch elfutils curl && apt-get clean +RUN apt-get update && apt-get upgrade -y && apt-get install -y kmod gnupg wget make gcc patch elfutils curl libelf-dev && apt-get clean RUN wget https://pkg.linbit.com/downloads/drbd/9/drbd-${DRBD_VERSION}.tar.gz -O /drbd.tar.gz && \ wget https://raw.githubusercontent.com/LINBIT/drbd/master/docker/entry.sh -O /entry.sh && chmod +x /entry.sh