generated from cockpit-project/starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cockpit-files currently works fine on RHEL 8 with beibooting. Let's keep it that way: Add a rhel-8.10/ws-container scenario that runs the tests through our ws container. Fixes #914
- Loading branch information
1 parent
841968b
commit 9928627
Showing
2 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
# image-customize script to prepare a bots VM for testing this application | ||
# in TEST_SCENARIO=ws-container. | ||
set -eux | ||
|
||
# back up original ws image | ||
podman tag quay.io/cockpit/ws:latest localhost/ws:released | ||
|
||
# update ws container with our current code | ||
cd /var/tmp | ||
tar --strip-components=1 -xvf cockpit-files*.tar.* cockpit-files/dist | ||
|
||
podman build -f - -t quay.io/cockpit/ws:latest . <<EOF | ||
FROM quay.io/cockpit/ws | ||
RUN rm -rf /usr/share/cockpit/files | ||
COPY dist /usr/share/cockpit/files | ||
EOF | ||
|
||
# remove preinstalled rpms | ||
dnf -C remove -y cockpit-bridge cockpit-ws | ||
|
||
if systemctl is-active -q firewalld.service; then | ||
firewall-cmd --add-service=cockpit --permanent | ||
fi |