generated from gns3/vnc-template
winbox download
All checks were successful
Build Docker Image on Commit / build-and-publish (push) Successful in 23s
All checks were successful
Build Docker Image on Commit / build-and-publish (push) Successful in 23s
This commit is contained in:
parent
b5d060816e
commit
73f4ee47cb
2 changed files with 16 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
FROM git.merith.xyz/gns3/base-vnc:latest
|
||||
## START setting your image here
|
||||
|
||||
# RUN apk add --no-cache firefox-esr
|
||||
RUN apk add --no-cache wine
|
||||
|
||||
## STOP setting up your image here
|
||||
# DO NOT REMOVE AND DO NOT ADD AN "ENTRYPOINT" COMMAND
|
||||
|
|
|
@ -1,3 +1,17 @@
|
|||
#!/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
|
||||
|
|
Loading…
Reference in a new issue