Improve testing tools
This commit is contained in:
@@ -4,7 +4,8 @@ RUN apt-get update && \
|
||||
apt-get install -y \
|
||||
qemu-system-x86 \
|
||||
gdb \
|
||||
novnc
|
||||
novnc \
|
||||
netcat
|
||||
|
||||
ENV MITTOS64 "true"
|
||||
ENV BUILDROOT "/opt"
|
||||
|
||||
@@ -4,4 +4,11 @@ if [[ -n "$WEBSOCK" ]]; then
|
||||
websockify --web /usr/share/novnc 6080 localhost:5900 &
|
||||
fi
|
||||
|
||||
if [[ -n "$WAITHOST" ]]; then
|
||||
until nc -z "${WAITHOST}" "${WAITPORT:-1234}" >/dev/null 2>&1; do
|
||||
>&2 echo "Waiting for ${WAITHOST} ${WAITPORT:-1234}"
|
||||
sleep 1
|
||||
done
|
||||
fi
|
||||
|
||||
eval "$@"
|
||||
Reference in New Issue
Block a user