Skip to content

Commit

Permalink
drbd-driver-loader: use ADD to fetch DRBD tarball and entry script
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Wanzenböck <[email protected]>
  • Loading branch information
WanzenBug authored and rck committed Jun 24, 2024
1 parent 64e7d60 commit c662086
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 27 deletions.
4 changes: 2 additions & 2 deletions dockerfiles/drbd-driver-loader/Dockerfile.almalinux8
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ RUN dnf -y update-minimal --security --sec-severity=Important --sec-severity=Cri
dnf install -y gcc make patch diffutils perl elfutils-libelf-devel kmod && dnf clean all -y

ARG DRBD_VERSION
RUN curl -fsSL https://pkg.linbit.com/downloads/drbd/9/drbd-${DRBD_VERSION}.tar.gz -o /drbd.tar.gz && \
curl -fsSL https://raw.githubusercontent.com/LINBIT/drbd/master/docker/entry.sh -o /entry.sh && chmod +x /entry.sh
ADD https://pkg.linbit.com/downloads/drbd/9/drbd-${DRBD_VERSION}.tar.gz /drbd.tar.gz
ADD --chmod=0755 https://raw.githubusercontent.com/LINBIT/drbd/master/docker/entry.sh /entry.sh

ENV LB_HOW compile
ENTRYPOINT /entry.sh
4 changes: 2 additions & 2 deletions dockerfiles/drbd-driver-loader/Dockerfile.almalinux9
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ RUN dnf -y update-minimal --security --sec-severity=Important --sec-severity=Cri
dnf install -y gcc make patch diffutils perl elfutils-libelf-devel kmod && dnf clean all -y

ARG DRBD_VERSION
RUN curl -fsSL https://pkg.linbit.com/downloads/drbd/9/drbd-${DRBD_VERSION}.tar.gz -o /drbd.tar.gz && \
curl -fsSL https://raw.githubusercontent.com/LINBIT/drbd/master/docker/entry.sh -o /entry.sh && chmod +x /entry.sh
ADD https://pkg.linbit.com/downloads/drbd/9/drbd-${DRBD_VERSION}.tar.gz /drbd.tar.gz
ADD --chmod=0755 https://raw.githubusercontent.com/LINBIT/drbd/master/docker/entry.sh /entry.sh

ENV LB_HOW compile
ENTRYPOINT /entry.sh
5 changes: 2 additions & 3 deletions dockerfiles/drbd-driver-loader/Dockerfile.bionic
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ RUN apt-get update && \
ca-certificates \
kmod \
gnupg \
wget \
make \
# Ubuntu has multiple kernel versions that may be using different gcc versions: use the dkms package to install them all
$(apt-get install -s dkms | awk '/^Inst gcc/{print $2}') \
Expand All @@ -18,8 +17,8 @@ RUN apt-get update && \
apt-get clean

ARG DRBD_VERSION
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
ADD https://pkg.linbit.com/downloads/drbd/9/drbd-${DRBD_VERSION}.tar.gz /drbd.tar.gz
ADD --chmod=0755 https://raw.githubusercontent.com/LINBIT/drbd/master/docker/entry.sh /entry.sh

ENV LB_HOW compile
ENTRYPOINT /entry.sh
6 changes: 3 additions & 3 deletions dockerfiles/drbd-driver-loader/Dockerfile.bookworm
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM debian:bookworm

RUN apt-get update && apt-get upgrade -y && apt-get install -y kmod gnupg wget make gcc patch diffutils perl elfutils curl 'linux-kbuild-*' && apt-get clean
RUN apt-get update && apt-get upgrade -y && apt-get install -y kmod gnupg make gcc patch diffutils perl elfutils curl 'linux-kbuild-*' && apt-get clean

ARG DRBD_VERSION
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
ADD https://pkg.linbit.com/downloads/drbd/9/drbd-${DRBD_VERSION}.tar.gz /drbd.tar.gz
ADD --chmod=0755 https://raw.githubusercontent.com/LINBIT/drbd/master/docker/entry.sh /entry.sh

ENV LB_HOW compile
ENTRYPOINT /entry.sh
6 changes: 3 additions & 3 deletions dockerfiles/drbd-driver-loader/Dockerfile.bullseye
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM debian:bullseye

RUN apt-get update && apt-get upgrade -y && apt-get install -y kmod gnupg wget make gcc patch diffutils perl elfutils curl 'linux-kbuild-*' && apt-get clean
RUN apt-get update && apt-get upgrade -y && apt-get install -y kmod gnupg make gcc patch diffutils perl elfutils curl 'linux-kbuild-*' && apt-get clean

ARG DRBD_VERSION
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
ADD https://pkg.linbit.com/downloads/drbd/9/drbd-${DRBD_VERSION}.tar.gz /drbd.tar.gz
ADD --chmod=0755 https://raw.githubusercontent.com/LINBIT/drbd/master/docker/entry.sh /entry.sh

ENV LB_HOW compile
ENTRYPOINT /entry.sh
6 changes: 3 additions & 3 deletions dockerfiles/drbd-driver-loader/Dockerfile.buster
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM debian:buster

RUN apt-get update && apt-get upgrade -y && apt-get install -y kmod gnupg wget make gcc patch diffutils perl elfutils curl 'linux-kbuild-*' && apt-get clean
RUN apt-get update && apt-get upgrade -y && apt-get install -y kmod gnupg make gcc patch diffutils perl elfutils curl 'linux-kbuild-*' && apt-get clean

ARG DRBD_VERSION
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
ADD https://pkg.linbit.com/downloads/drbd/9/drbd-${DRBD_VERSION}.tar.gz /drbd.tar.gz
ADD --chmod=0755 https://raw.githubusercontent.com/LINBIT/drbd/master/docker/entry.sh /entry.sh

ENV LB_HOW compile
ENTRYPOINT /entry.sh
4 changes: 2 additions & 2 deletions dockerfiles/drbd-driver-loader/Dockerfile.centos7
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ RUN yum -y update-minimal --security --sec-severity=Important --sec-severity=Cri
yum install -y gcc make patch diffutils perl kmod && yum clean all -y

ARG DRBD_VERSION
RUN curl -fsSL https://pkg.linbit.com/downloads/drbd/9/drbd-${DRBD_VERSION}.tar.gz -o /drbd.tar.gz && \
curl -fsSL https://raw.githubusercontent.com/LINBIT/drbd/master/docker/entry.sh -o /entry.sh && chmod +x /entry.sh
ADD https://pkg.linbit.com/downloads/drbd/9/drbd-${DRBD_VERSION}.tar.gz /drbd.tar.gz
ADD --chmod=0755 https://raw.githubusercontent.com/LINBIT/drbd/master/docker/entry.sh /entry.sh

ENV LB_HOW compile
ENTRYPOINT /entry.sh
5 changes: 2 additions & 3 deletions dockerfiles/drbd-driver-loader/Dockerfile.focal
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ RUN apt-get update && \
ca-certificates \
kmod \
gnupg \
wget \
make \
# Ubuntu has multiple kernel versions that may be using different gcc versions: use the dkms package to install them all
$(apt-get install -s dkms | awk '/^Inst gcc/{print $2}') \
Expand All @@ -18,8 +17,8 @@ RUN apt-get update && \
apt-get clean

ARG DRBD_VERSION
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
ADD https://pkg.linbit.com/downloads/drbd/9/drbd-${DRBD_VERSION}.tar.gz /drbd.tar.gz
ADD --chmod=0755 https://raw.githubusercontent.com/LINBIT/drbd/master/docker/entry.sh /entry.sh

ENV LB_HOW compile
ENTRYPOINT /entry.sh
5 changes: 2 additions & 3 deletions dockerfiles/drbd-driver-loader/Dockerfile.jammy
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ RUN apt-get update && \
ca-certificates \
kmod \
gnupg \
wget \
make \
# Ubuntu has multiple kernel versions that may be using different gcc versions: use the dkms package to install them all
$(apt-get install -s dkms | awk '/^Inst gcc/{print $2}') \
Expand All @@ -18,8 +17,8 @@ RUN apt-get update && \
apt-get clean

ARG DRBD_VERSION
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
ADD https://pkg.linbit.com/downloads/drbd/9/drbd-${DRBD_VERSION}.tar.gz /drbd.tar.gz
ADD --chmod=0755 https://raw.githubusercontent.com/LINBIT/drbd/master/docker/entry.sh /entry.sh

ENV LB_HOW compile
ENTRYPOINT /entry.sh
5 changes: 2 additions & 3 deletions dockerfiles/drbd-driver-loader/Dockerfile.noble
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ RUN apt-get update && \
ca-certificates \
kmod \
gpg \
make \
# Ubuntu has multiple kernel versions that may be using different gcc versions: use the dkms package to install them all
$(apt-get install -s dkms | awk '/^Inst gcc/{print $2}') \
patch \
Expand All @@ -19,8 +18,8 @@ RUN apt-get update && \
apt-get clean

ARG DRBD_VERSION
RUN curl -fsSL https://pkg.linbit.com/downloads/drbd/9/drbd-${DRBD_VERSION}.tar.gz -o /drbd.tar.gz && \
curl -fsSL https://raw.githubusercontent.com/LINBIT/drbd/master/docker/entry.sh -o /entry.sh && chmod +x /entry.sh
ADD https://pkg.linbit.com/downloads/drbd/9/drbd-${DRBD_VERSION}.tar.gz /drbd.tar.gz
ADD --chmod=0755 https://raw.githubusercontent.com/LINBIT/drbd/master/docker/entry.sh /entry.sh

ENV LB_HOW compile
ENTRYPOINT /entry.sh

0 comments on commit c662086

Please sign in to comment.