Browse Source

changed labels to key-value format

main
sose 1 month ago
parent
commit
20a790f69c
  1. 2
      new_image.sh
  2. 2
      reset.sh
  3. 2
      servers/deathlistener.sh

2
new_image.sh

@ -45,7 +45,7 @@ docker build \
--build-arg INFO_PORT=$info_port \
--build-arg LOG_PORT=$log_port \
--build-arg SSHD_PORT=$user_sshd_port \
--label "SLBR User Container" \
--label description="SLBR User Container" \
./image
rm image/pubkey

2
reset.sh

@ -4,7 +4,7 @@ num_challenges="$(
| cut -f1 -d ' '
)"
docker ps \
-f label="SLBR User Container" \
-f label="description=SLBR User Container" \
--format "{{.ID}}" \
| xargs docker rm -f
docker images -a \

2
servers/deathlistener.sh

@ -69,7 +69,7 @@ handle_packet() {
echo "$address HAS WON THE GAME!!!" >> $LOG
sleep 5
echo "Killing all continers..." >> $LOG
docker ps -aq --filter label="SLBR User Container" | xargs docker rm -f
docker ps -aq --filter label="description=SLBR User Container" | xargs docker rm -f
exit
fi

Loading…
Cancel
Save