]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
ci: cleanup containers
authorHenrik Gombos <henrik99999@gmail.com>
Fri, 2 Jun 2023 14:05:12 +0000 (14:05 +0000)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Tue, 6 Jun 2023 13:36:59 +0000 (15:36 +0200)
Remove /etc/profile.d/dracut-test.sh from test containers
No use to override default command
Remove references to docker. These files work just fine
with podman as well.

test/container/Dockerfile-Arch
test/container/Dockerfile-Debian
test/container/Dockerfile-Fedora-latest
test/container/Dockerfile-Gentoo
test/container/Dockerfile-OpenSuse-latest

index 2d62d80cdac7ef2dda1ef65d61341c86a4879a40..f05ce8f1dec4cab8377c23f5d8c1ac7f680e4603 100644 (file)
@@ -2,11 +2,6 @@ FROM docker.io/archlinux
 
 MAINTAINER https://github.com/dracutdevs/dracut
 
-ENV container docker
-LABEL RUN="docker run -it --name NAME --privileged --ipc=host --net=host --pid=host -e NAME=NAME -e IMAGE=IMAGE IMAGE"
-
-RUN echo 'export DRACUT_NO_XATTR=1 KVERSION=$(cd /lib/modules; ls -1 | tail -1)' > /etc/profile.d/dracut-test.sh
-
 # Install needed packages for the dracut CI container
 RUN pacman --noconfirm -Syu \
     linux dash strace dhclient asciidoc cpio pigz squashfs-tools \
@@ -20,6 +15,3 @@ RUN pacman -U --noconfirm ~build/perl-config-general/*.pkg.tar.*
 RUN su build -c 'cd && git clone https://aur.archlinux.org/tgt.git && cd tgt && makepkg -s --noconfirm'
 RUN pacman -U --noconfirm ~build/tgt/*.pkg.tar.*
 RUN rm -fr ~build
-
-# Set default command
-CMD ["/usr/bin/bash"]
index 225eedca0a868d649745d8e115e076eff666c08b..d1bd3d9a8fb517938aaa387db2f74045a5ac4fbd 100644 (file)
@@ -2,11 +2,6 @@ FROM docker.io/debian:latest
 
 MAINTAINER https://github.com/dracutdevs/dracut
 
-ENV container docker
-LABEL RUN="docker run -it --name NAME --privileged --ipc=host --net=host --pid=host -e NAME=NAME -e IMAGE=IMAGE IMAGE"
-
-RUN echo 'export DRACUT_NO_XATTR=1 KVERSION=$(cd /lib/modules; ls -1 | tail -1)' > /etc/profile.d/dracut-test.sh
-
 # Install needed packages for the dracut CI container
 RUN apt-get update -y -qq && apt-get upgrade -y -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends -o Dpkg::Use-Pty=0 \
     asciidoc \
@@ -69,6 +64,3 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get download dmraid \
     && DEBIAN_FRONTEND=noninteractive dpkg --configure dmraid \
     && apt-get install -yf \
     && apt-get clean
-
-# Set default command
-CMD ["/usr/bin/bash"]
index 3cd488c6edb00d392d96cdda23a32e4e257f1530..2668a8e1f11bd4819858b855302292c9974dec90 100644 (file)
@@ -2,11 +2,6 @@ FROM registry.fedoraproject.org/fedora:latest
 
 MAINTAINER https://github.com/dracutdevs/dracut
 
-ENV container docker
-LABEL RUN="docker run -it --name NAME --privileged --ipc=host --net=host --pid=host -e NAME=NAME -e IMAGE=IMAGE IMAGE"
-
-RUN echo 'export DRACUT_NO_XATTR=1 KVERSION=$(cd /lib/modules; ls -1 | tail -1)' > /etc/profile.d/dracut-test.sh
-
 # Install needed packages for the dracut CI container
 RUN dnf -y install --setopt=install_weak_deps=False \
     asciidoc \
@@ -73,6 +68,3 @@ RUN dnf -y install --setopt=install_weak_deps=False \
     which \
     xz \
     && dnf -y remove dracut --noautoremove && dnf -y update && dnf clean all
-
-# Set default command
-CMD ["/usr/bin/bash"]
index fb636a4f500cbd53b18809a225a05a3a940c5a0e..3a2d5826ff89070d5e99fa429ae11b756ca828ab 100644 (file)
@@ -12,11 +12,6 @@ COPY --from=kernel /lib/modules /lib/modules
 
 MAINTAINER https://github.com/dracutdevs/dracut
 
-ENV container docker
-LABEL RUN="docker run -it --name NAME --privileged --ipc=host --net=host --pid=host -e NAME=NAME -e IMAGE=IMAGE IMAGE"
-
-RUN echo 'export DRACUT_NO_XATTR=1 KVERSION=$(cd /lib/modules; ls -1 | tail -1)' > /etc/profile.d/dracut-test.sh
-
 # Only install `dmsetup`: attempting to install all of lvm2 fails due to missing kernel headers.
 RUN echo 'sys-fs/lvm2 device-mapper-only -thin' > /etc/portage/package.use/lvm2
 
@@ -43,6 +38,3 @@ RUN emerge -qv \
     sys-fs/ntfs3g \
     sys-fs/squashfs-tools \
     && rm -rf /var/cache/* /usr/share/doc/* /usr/share/man/*
-
-# Set default command
-CMD ["/usr/bin/bash"]
index a8ab458571749704b7261b4f73555058adf24c7e..ab31cfc37f2faad347dac56620db09722cf7b520 100644 (file)
@@ -2,11 +2,6 @@ FROM registry.opensuse.org/opensuse/tumbleweed-dnf:latest
 
 MAINTAINER https://github.com/dracutdevs/dracut
 
-ENV container docker
-LABEL RUN="docker run -it --name NAME --privileged --ipc=host --net=host --pid=host -e NAME=NAME -e IMAGE=IMAGE IMAGE"
-
-RUN echo 'export DRACUT_NO_XATTR=1 KVERSION=$(cd /lib/modules; ls -1 | tail -1)' > /etc/profile.d/dracut-test.sh
-
 # Install needed packages for the dracut CI container
 RUN dnf -y install --setopt=install_weak_deps=False \
     dash asciidoc mdadm lvm2 dmraid cryptsetup nfs-utils nbd dhcp-server \
@@ -16,6 +11,3 @@ RUN dnf -y install --setopt=install_weak_deps=False \
     iscsiuio open-iscsi which ShellCheck shfmt procps pigz parted squashfs ntfsprogs \
     multipath-tools \
     && dnf -y remove dracut && dnf -y update && dnf clean all
-
-# Set default command
-CMD ["/usr/bin/bash"]