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
6 changes: 3 additions & 3 deletions image-create
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class MachineBuilder:
def run_setup_script(self, script: str) -> None:
"""Prepare a test image further by running some commands in it."""
try:
self.machine.boot(timeout_sec=300)
self.machine.boot(timeout_sec=480)
self.machine.upload([os.path.join(testvm.SCRIPTS_DIR, "lib/")], "/var/lib/testvm")
self.machine.upload([script], "/var/tmp/SETUP")

Expand Down Expand Up @@ -184,8 +184,8 @@ class MachineBuilder:

try:
if args.image == 'services':
# deploying candlepin needs oodles of memory
memory_mb = 3072
# deploying candlepin or freeipa needs oodles of memory
memory_mb = 4096
else:
memory_mb = 2048

Expand Down
5 changes: 3 additions & 2 deletions images/scripts/services.setup
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@ hostnamectl set-hostname services.cockpit.lan
#############

# see https://quay.io/repository/freeipa/freeipa-server
# we want centos-9-stream tag here, but newer versions have a time-bomb crash: https://issues.redhat.com/browse/RHEL-76748
# and https://github.com/freeipa/freeipa-container/issues/346
setsebool -P container_manage_cgroup 1
mkdir /var/lib/ipa-data

cat <<EOF > /root/run-freeipa
podman run -d --rm --name freeipa -ti -h f0.cockpit.lan \
--dns=$SERVER_IP \
-e IPA_SERVER_IP=$SERVER_IP \
-p $SERVER_IP:53:53/udp -p $SERVER_IP:53:53 -p 80:80 -p 443:443 -p 389:389 -p 636:636 -p 88:88 -p 464:464 -p 88:88/udp -p 464:464/udp -p 123:123/udp \
-v /var/lib/ipa-data:/data:Z \
-v /sys/fs/cgroup:/sys/fs/cgroup:ro \
quay.io/freeipa/freeipa-server:centos-9-stream-4.12.0 \
quay.io/freeipa/freeipa-server:centos-9-stream \
-U -p foobarfoo -a foobarfoo -n cockpit.lan -r COCKPIT.LAN --setup-dns --no-forwarders --no-ntp
EOF
chmod 755 /root/run-freeipa
Expand Down
Loading