From a6dd6e868ad9e61e39d7a108c391659e67e8f287 Mon Sep 17 00:00:00 2001 From: jbtrystram Date: Tue, 13 Feb 2024 16:33:18 +0100 Subject: [PATCH] host containerFiles needed for kola tests Some kola tests requires additionnal images to work (isci, luks). Until now these images have been maintained by indivudual members of the coreOS team. This moves the images under coreos-assembler for sharing the maintainership, and allowing the images to be periodically rebuilt. See https://github.com/coreos/fedora-coreos-tracker/issues/1639#issuecomment-1875832998 --- tests/containers/README.md | 4 ++++ tests/containers/tang/Containerfile | 8 ++++++++ tests/containers/tang/README.md | 3 +++ tests/containers/target/Containerfile | 9 +++++++++ tests/containers/target/README.md | 4 ++++ 5 files changed, 28 insertions(+) create mode 100644 tests/containers/README.md create mode 100644 tests/containers/tang/Containerfile create mode 100644 tests/containers/tang/README.md create mode 100644 tests/containers/target/Containerfile create mode 100644 tests/containers/target/README.md diff --git a/tests/containers/README.md b/tests/containers/README.md new file mode 100644 index 0000000000..eb851cbbd7 --- /dev/null +++ b/tests/containers/README.md @@ -0,0 +1,4 @@ +This contains containerFiles to build images used by the CoreOS assembler tests. + +Create a folder for each image, with a README linking to the kola test that uses the image + diff --git a/tests/containers/tang/Containerfile b/tests/containers/tang/Containerfile new file mode 100644 index 0000000000..a0d91a2243 --- /dev/null +++ b/tests/containers/tang/Containerfile @@ -0,0 +1,8 @@ +FROM registry.fedoraproject.org/fedora-minimal:39 + +RUN microdnf -y install tang && microdnf clean all && rm -rf /var/cache/yum +EXPOSE 80 + +RUN systemctl enable tangd.socket + +CMD ["/sbin/init"] \ No newline at end of file diff --git a/tests/containers/tang/README.md b/tests/containers/tang/README.md new file mode 100644 index 0000000000..b7bd560a87 --- /dev/null +++ b/tests/containers/tang/README.md @@ -0,0 +1,3 @@ +# Tang Container + +This is used by the luks tests in `luks.*` diff --git a/tests/containers/target/Containerfile b/tests/containers/target/Containerfile new file mode 100644 index 0000000000..45b46ae47b --- /dev/null +++ b/tests/containers/target/Containerfile @@ -0,0 +1,9 @@ +FROM quay.io/centos/centos:stream9 + +RUN dnf install -y targetcli kmod && dnf clean all +RUN systemctl enable target + +EXPOSE 3260 + +HEALTHCHECK --start-period=10s CMD targetcli pwd +CMD [ "/sbin/init" ] diff --git a/tests/containers/target/README.md b/tests/containers/target/README.md new file mode 100644 index 0000000000..d0e8a95a23 --- /dev/null +++ b/tests/containers/target/README.md @@ -0,0 +1,4 @@ +# targetcli container + +This is used by the iSCSI setup tested in `iso-offline-install-iscsi.bios` +