Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
trust/build-livecd-rfs: fix localhost in demo script
Browse files Browse the repository at this point in the history
Using 'localhost' instead of 127.0.0.1 can fail.

Signed-off-by: Serge Hallyn <[email protected]>
  • Loading branch information
hallyn committed May 1, 2023
1 parent 993974d commit 85fe1d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions live/build-livecd-rfs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ mkdir -p zot-cache
"gc": false
},
"http": {
"address": "localhost",
"address": "127.0.0.1",
"port": "$ZOT_PORT"
},
"log": {
Expand All @@ -83,7 +83,7 @@ while [[ $count -gt 0 ]]; do
exit 1
fi
up=1
curl -f http://localhost:$ZOT_PORT/v2/ || up=0
curl -f http://127.0.0.1:$ZOT_PORT/v2/ || up=0
if [ $up -eq 1 ]; then break; fi
sleep 1
count=$((count - 1))
Expand Down Expand Up @@ -145,10 +145,10 @@ fi

mosb --debug manifest publish \
--project $project \
--repo localhost:${ZOT_PORT} --name machine/livecd:1.0.0 \
--repo 127.0.0.1:${ZOT_PORT} --name machine/livecd:1.0.0 \
manifest.yaml

mosb --debug mkboot --cdrom \
$project \
docker://localhost:${ZOT_PORT}/machine/livecd:1.0.0 \
docker://127.0.0.1:${ZOT_PORT}/machine/livecd:1.0.0 \
${OUTFILE}

0 comments on commit 85fe1d8

Please sign in to comment.