7 Commits

Author SHA1 Message Date
4e417871a8 Icon and media changes 2025-12-23 12:36:43 -08:00
3fae41e34f Added Gimp file for icon 2025-12-20 20:22:30 -08:00
1c9c1d40df Move to version 0.3.0 2025-12-20 19:42:01 -08:00
259ac9c652 README updates 2025-12-20 19:25:47 -08:00
07bcf0073e Added icon file 2025-12-20 19:23:41 -08:00
edd3693fb6 Reorganized files 2025-12-20 19:20:48 -08:00
ea0a34258b Added script to launch vscode in Wayland environment 2025-12-14 08:55:05 -08:00
12 changed files with 51 additions and 10 deletions

View File

@@ -25,9 +25,11 @@ RUN mkdir -p /var/www && mkdir -p /var/www/data/speed
WORKDIR /var/www
# Copy web assets and scripts
COPY index.html /var/www/index.html
COPY run_speed_test.sh /usr/local/bin/run_speed_test.sh
COPY start.sh /usr/local/bin/start.sh
COPY src/index.html /var/www/index.html
COPY src/favicon.ico /var/www/favicon.ico
COPY src/gem_nw_128.png /var/www/icon.png
COPY src/run_speed_test.sh /usr/local/bin/run_speed_test.sh
COPY src/start.sh /usr/local/bin/start.sh
# Ensure scripts are executable
RUN chmod +x /usr/local/bin/run_speed_test.sh /usr/local/bin/start.sh

View File

@@ -47,7 +47,9 @@ docker run -d --name speed-data -e PORT=8080 -p 8080:8080 --restart unless-stopp
Alternatively, run with a host bind mount (for direct access to files on the host):
```bash
docker rm -f speed-data || true \
docker build -t speed-data-app .
docker rm -f $(docker ps -a -q --filter name=speed\-data --filter status=running) || true \
&& docker volume create speed-data-volume && \
docker run -d --name speed-data -e CRON_MINUTE=18 -e PORT=8080 -p 8585:8080 --restart unless-stopped \
-v ~/docker-data/speed-data-app/data:/var/www/data/speed speed-data-app

Binary file not shown.

After

Width:  |  Height:  |  Size: 708 KiB

BIN
media/gem_nw_light.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

BIN
media/gem_nw_light.xcf Normal file

Binary file not shown.

View File

@@ -1,6 +1,6 @@
#!/bin/bash
VERSION=0.2.0
VERSION=0.3.0
docker image build --no-cache -t asolkar/speed-data-docker:${VERSION} . && \
docker push asolkar/speed-data-docker:${VERSION}

6
scripts/vscode Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
/opt/vscode/VSCode-linux-x64/code \
--enable-features=UseOzonePlatform,WaylandWindowDecorations \
--ozone-platform-hint=auto \
--unity-launch %F . & disown %1

BIN
src/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
src/gem_nw_128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@@ -233,12 +233,43 @@ h1, h2, h5 {
float: left;
margin: 5px;
}
}
h1 {
height: 1.5em;
valign: center;
}
h1 img#app-icon {
width: 1em;
height: 1em;
padding-right: 0.25em;
}
#app-advt {
display: block;
width: max-content;
margin-left: auto;
margin-right: auto;
padding-bottom: 0.5em;
font-size: 0.5em;
}
#app-advt img {
padding-right: 0.5em;
width: 1em;
height: 1em;
}
/* #app-advt img:hover {
width: 128px;
height: 128px;
}*/
#app-advt a {
text-decoration: none;
color: grey;
}
</style>
</head>
<body>
<div id="spinner"></div>
<div id="spinner-desc">Preparing data ...</div>
<div id="app-advt"><img id="app-icon" src="icon.png" /><a href="https://git.heshapps.com/asolkar/speed-data-docker">Presented by Heshapps.com - speed-data-docker</a></div>
<div id="recent_samples">
<div id="recent">
</div>

View File

@@ -29,14 +29,14 @@ service cron start || cron || true
# Run the initial speed test once (in background) to populate files if possible
# We run it in background so server starts promptly. The cron will run hourly.
/usr/local/bin/run_speed_test.sh >> /var/log/cron.log 2>&1 || true &
/usr/local/bin/run_speed_test.sh >> /var/log/cron.log 2>&1 || true &
# Start busybox httpd serving /var/www on configured port in foreground
if command -v busybox >/dev/null 2>&1; then
echo "starting busybox httpd on port ${PORT} serving /var/www"
busybox httpd -f -p ${PORT} -h /var/www
busybox httpd -f -p ${PORT} -h /var/www
else
echo "warning: busybox httpd not found; container will keep running with cron only" >&2
# keep the script running so container doesn't exit
tail -f /var/log/cron.log
echo "warning: busybox httpd not found; container will keep running with cron only" >&2
# keep the script running so container doesn't exit
tail -f /var/log/cron.log
fi