Skip to content

Commit

Permalink
ci: also run integration test on Ubuntu
Browse files Browse the repository at this point in the history
Add a Dockerfile for Ubuntu (very similar to Debian) and run the
integration tests also on Ubuntu.

Signed-off-by: Benjamin Drung <[email protected]>
  • Loading branch information
bdrung committed Aug 19, 2023
1 parent 028f763 commit a98bcd7
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
- { dockerfile: 'Dockerfile-Arch', tag: 'arch:latest' }
- { dockerfile: 'Dockerfile-Debian', tag: 'debian:latest' }
- { dockerfile: 'Dockerfile-Gentoo', tag: 'gentoo:latest' }
- { dockerfile: 'Dockerfile-Ubuntu', tag: 'ubuntu:latest' }
steps:
- name: Check out the repo
uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
"fedora:latest",
"gentoo:latest",
"opensuse:latest",
"ubuntu:latest",
]
test: [
"01",
Expand Down
63 changes: 63 additions & 0 deletions test/container/Dockerfile-Ubuntu
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
FROM docker.io/ubuntu:latest

MAINTAINER https://github.com/dracutdevs/dracut

# Install needed packages for the dracut CI container
# The Linux kernel is only readable by root. See https://launchpad.net/bugs/759725
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 \
astyle \
btrfs-progs \
busybox-static \
bzip2 \
ca-certificates \
console-setup \
cpio \
cryptsetup \
curl \
dmraid \
docbook \
docbook-xml \
docbook-xsl \
fdisk \
g++ \
gawk \
git \
iputils-arping \
iputils-ping \
isc-dhcp-client \
isc-dhcp-server \
kmod \
less \
libdmraid-dev \
libkmod-dev \
linux-image-generic \
lvm2 \
make \
mdadm \
multipath-tools \
nbd-client \
nbd-server \
network-manager \
nfs-kernel-server \
ntfs-3g \
open-iscsi \
ovmf \
parted \
pigz \
pkg-config \
procps \
qemu-kvm \
shellcheck \
squashfs-tools \
strace \
sudo \
systemd \
tcpdump \
tgt \
thin-provisioning-tools \
vim \
wget \
&& apt-get clean \
&& chmod a+r /boot/vmlinu*

0 comments on commit a98bcd7

Please sign in to comment.