Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
strategy:
matrix:
include:
- dist: almalinux9
- dist: alpine
- dist: centos7
- dist: debian10
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-docker-images.yml
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI doesn't currently handle adding new images properly, so I'm seeding ghcr.io/scop/bash-completion/test:almalinux9 by pushing my locally built image.

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
fail-fast: false
matrix:
include:
- dist: almalinux9
- dist: alpine
- dist: centos7
- dist: debian10
Expand Down
24 changes: 24 additions & 0 deletions test/docker/almalinux9/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM almalinux:9

RUN set -x \
echo install_weak_deps=False >> /etc/dnf/dnf.conf \
&& dnf -y --refresh upgrade \
&& dnf -y install epel-release \
&& dnf -y --refresh install \
/usr/bin/autoconf \
/usr/bin/automake \
/usr/bin/make \
/usr/bin/xvfb-run \
/usr/bin/pytest-3 \
openssh-server \
python3-pexpect \
python3-pytest-xdist \
&& ln -s $(type -P pytest-3) /usr/local/bin/pytest

ADD test-cmd-list.txt \
docker/almalinux9/install-packages.sh \
/tmp/

RUN /tmp/install-packages.sh </tmp/test-cmd-list.txt \
&& dnf -Cy clean all \
&& rm -r /tmp/* /var/lib/dnf/history.sqlite* /var/lib/dnf/repos/*
17 changes: 17 additions & 0 deletions test/docker/almalinux9/install-packages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
set -xeuo pipefail

shopt -s extglob

cd "${TMPDIR:-/tmp}"

while read -r file; do
case $file in
/*) printf "%s\n" "$file" ;;
*) printf "%s\n" {/usr,}/{,s}bin/"$file" ;;
esac
done |
xargs dnf -y install --skip-broken
# --skip-broken: avoid failing on not found packages. Also prevents actually
# broken packages from failing the install which is not what we want, but
# there doesn't seem to be way to cleanly just skip the not found ones.
Loading