Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
c1af45a
Implement fromScratch design
Timendus Jul 30, 2024
c7e3fcc
Add some documentation
Timendus Jul 30, 2024
a6e5241
enable new design in docker (no alpine yet)
sstidl Oct 19, 2024
66e967a
Merge branch 'master' of github.com:librespeed/speedtest into newdesign
sstidl Oct 19, 2024
4b6a8b8
merge fixed docker images
sstidl Oct 26, 2024
e8c8ac8
alpine docker added new design
sstidl Oct 26, 2024
74644b0
Merge branch 'master' of https://github.com/librespeed/speedtest into…
sstidl Oct 26, 2024
783fd37
fix Dual mode is broken #666
sstidl Oct 26, 2024
a02f4e3
fix #685
sstidl Nov 30, 2024
c8696a8
fix Dual mode is broken #666
sstidl Dec 1, 2024
3f20f0e
Merge branch 'fix-dual-mode' of https://github.com/librespeed/speedte…
stefanstidlffg Dec 1, 2024
0642af8
Implement fromScratch design
Timendus Dec 1, 2024
1dc40d7
Add some documentation
Timendus Dec 1, 2024
853cb4f
enable new design in docker (no alpine yet)
sstidl Dec 1, 2024
96b0261
alpine docker added new design
sstidl Dec 1, 2024
cc4c2f8
fix #685
sstidl Dec 1, 2024
018c696
Merge branch 'newdesign' of https://github.com/librespeed/speedtest i…
stefanstidlffg Dec 1, 2024
83f7491
fix database permissions alpine, remove baby
sstidl Dec 1, 2024
b345343
Merge remote-tracking branch 'origin/master' into newdesign
sstidl Dec 1, 2024
29e0686
Merge pull request #679 from librespeed/fix-dual-mode
sstidl Dec 29, 2024
de84674
Merge branch 'master' into fix-docker-images
sstidl Dec 29, 2024
fe85a80
documentation of docker tests
sstidl Dec 29, 2024
0274f6e
Update docker/ui.php
sstidl Dec 29, 2024
6d31010
Update docker/ui.php
sstidl Dec 29, 2024
13eb449
Update docker/test/test-script.sh
sstidl Dec 29, 2024
af9cbc0
repair own url detection, switched to js
sstidl Dec 29, 2024
e6fac55
fix phar loading on alpine
sstidl Dec 29, 2024
13f6c49
Merge commit 'dd40a3a4937d88fdc2337adb190fb9d091e849a4' into newdesign
sstidl Dec 29, 2024
f06187a
Merge branch 'fix-docker-images' into newdesign
sstidl Dec 29, 2024
dda7841
hide serverselector on only one server
sstidl Dec 29, 2024
4fc0932
Update frontend/styling/server-selector.css
sstidl Apr 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN mkdir -p /speedtest/

# Copy sources
COPY backend/ /speedtest/backend
COPY frontend/ /speedtest/frontend

COPY results/*.php /speedtest/results/
COPY results/*.ttf /speedtest/results/
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ RUN apk add --quiet --no-cache \
apache2 \
php-apache2 \
php-ctype \
php-phar \
php-gd \
php-openssl \
php-pdo \
Expand All @@ -18,7 +19,6 @@ RUN apk add --quiet --no-cache \
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/



# Install extensions
RUN install-php-extensions iconv gd pdo pdo_mysql pdo_pgsql pgsql

Expand All @@ -30,6 +30,7 @@ RUN mkdir -p /speedtest/

# Copy sources
COPY backend/ /speedtest/backend
COPY frontend/ /speedtest/frontend

COPY results/*.php /speedtest/results/
COPY results/*.ttf /speedtest/results/
Expand Down
9 changes: 6 additions & 3 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,12 @@ if [ "$MODE" == "backend" ]; then
fi
fi

# Set up unified index.php
if [ "$MODE" != "backend" ]; then
cp /speedtest/ui.php /var/www/html/index.php
# Set up index.php for frontend-only or standalone modes
if [[ "$MODE" == "frontend" || "$MODE" == "dual" ]]; then
cp -av /speedtest/frontend/* /var/www/html/
elif [ "$MODE" == "standalone" ]; then
cp -av /speedtest/frontend/* /var/www/html/
echo '[{"name":"local","server":"/backend", "dlURL": "garbage.php", "ulURL": "empty.php", "pingURL": "empty.php", "getIpURL": "getIP.php", "sponsorName": "", "sponsorURL": "", "id":1 }]' > /var/www/html/server-list.json
fi

# Apply Telemetry settings when running in standalone or frontend mode and telemetry is enabled
Expand Down
4 changes: 4 additions & 0 deletions docker/test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The files in this folder represent a simple end to end test.
At the moment it is interactive, so you need to run `docker compose up` in the folder and watch the output for errors.
Sometimes the mysql container needs more than 15 seconds, so the test_script fails.
Just try it again.
27 changes: 27 additions & 0 deletions docker/test/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
## this is a docker compose file used to test all scenarios
## do not use it in production
x-shared:
speedtest-service: &speedtest-service
environment:
- PASSWORD=gimmeTheStats1337
- [email protected]
- ENABLE_ID_OBFUSCATION=true
- MODE=standalone
- REDACT_IP_ADDRESSES=true
- TELEMETRY=true

services:
###################### POSTGRESQL ################################
Expand Down Expand Up @@ -104,9 +113,27 @@ services:
ports:
- 9128:8080

speedtest-alpine-sqlite-dual:
<<: *speedtest-service
build:
context: ../..
dockerfile: Dockerfile.alpine
environment:
- MODE=dual

volumes:
- ./servers.json:/servers.json:ro
ports:
- 9129:8080

############## TEST CONTAINER ###############################################################
test-container:
image: alpine
depends_on:
- pg
- mysql
- speedtest-alpine-mysql
- speedtest-alpine-pg
volumes:
- ./test-script.sh:/test-script.sh
command:
Expand Down
Loading