From 38b1f59abcbf58a465915dea6ae38c3ced28136a Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 8 May 2024 13:25:10 +0200 Subject: [PATCH] Small fixes Signed-off-by: Daniel --- appliances/Harbor/appliance.sh | 3 ++- packer/service_Harbor/Harbor.pkr.hcl | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/appliances/Harbor/appliance.sh b/appliances/Harbor/appliance.sh index 42b5fc7f..ccc88668 100644 --- a/appliances/Harbor/appliance.sh +++ b/appliances/Harbor/appliance.sh @@ -318,9 +318,10 @@ mount_persistent() { wait_for_docker_containers() { local start_time=$(date +%s) local end_time=$((start_time + 300)) # 5 minutes in seconds - local all_healthy=1 while [ $(date +%s) -lt $end_time ]; do + local all_healthy=1 + # Get the IDs of all running containers local container_ids=$(docker ps --format "{{.ID}}") diff --git a/packer/service_Harbor/Harbor.pkr.hcl b/packer/service_Harbor/Harbor.pkr.hcl index 32531cbd..ddea01ea 100644 --- a/packer/service_Harbor/Harbor.pkr.hcl +++ b/packer/service_Harbor/Harbor.pkr.hcl @@ -29,7 +29,7 @@ source "qemu" "Harbor" { net_device = "virtio-net" format = "qcow2" disk_compression = false - skip_resize_disk = true + disk_size = 5120 output_directory = var.output_dir