Untitled
unknown
plain_text
a year ago
989 B
6
Indexable
# Function to generate ISO generate_iso() { docker run --env REGION \ --env S3_ENDPOINT --env POLLER_HOSTNAME \ --env REMOTE_LOGIN_USERNAME --env REMOTE_LOGIN_SSH_KEY \ --env LOCAL_LOGIN_USERNAME --env LOCAL_LOGIN_PASSWORD \ --env IMAGE_TYPE --env NTP_SERVERS \ --env SSM_ACTIVATION \ --privileged \ -v $(pwd):/app \ 664776140435.dkr.ecr.us-west-2.amazonaws.com/galacticlaunchvehicle:latest \ generate_image -b ./input/base.iso -d ./glv_image_build/meglo_glv_$IMAGE_TYPE.iso -p glv_image_build/configuration/glv/ubuntu/payload } # Infinite loop until ISO is generated while true; do echo "Attempting to generate ISO..." # Call the function to generate ISO generate_iso # Check if ISO file exists if [ -e "./glv_image_build/meglo_glv_$IMAGE_TYPE.iso" ]; then echo "Generated ISO: $(pwd)/glv_image_build/meglo_glv_$IMAGE_TYPE.iso" break else echo "ISO generation failed. Retrying..." fi done
Leave a Comment