winbox download
All checks were successful
Build Docker Image on Commit / build-and-publish (push) Successful in 23s

This commit is contained in:
Merith 2025-06-05 06:07:01 +00:00
parent b5d060816e
commit 73f4ee47cb
2 changed files with 16 additions and 2 deletions

View file

@ -2,7 +2,7 @@
FROM git.merith.xyz/gns3/base-vnc:latest FROM git.merith.xyz/gns3/base-vnc:latest
## START setting your image here ## START setting your image here
# RUN apk add --no-cache firefox-esr RUN apk add --no-cache wine
## STOP setting up your image here ## STOP setting up your image here
# DO NOT REMOVE AND DO NOT ADD AN "ENTRYPOINT" COMMAND # DO NOT REMOVE AND DO NOT ADD AN "ENTRYPOINT" COMMAND

View file

@ -1,3 +1,17 @@
#!/bin/bash #!/bin/bash
xterm # Wait until internet is available
while ! ping -c1 1.1.1.1 &>/dev/null; do
echo "Waiting for internet connection..."
sleep 5
done
if [ ! -f "/data/winbox64.exe" ]; then
echo "Winbox executable not found in /data. Downloading..."
mkdir -p /data
wget -O /data/winbox64.exe https://download.mikrotik.com/routeros/winbox/3.42/winbox64.exe
else
echo "Winbox executable found in /data."
fi
wine64 /tmp/winbox64.exe