Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Change to Debian #286

Merged
merged 18 commits into from
Sep 26, 2024
Merged
17 changes: 13 additions & 4 deletions speedtest/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
FROM alpine:3.20.3
FROM debian:12.7-slim

# Install xz-utils
RUN apt-get update \
&& apt-get --yes upgrade \
&& apt-get --yes install xz-utils wget

# Add s6-overlay
WORKDIR /tmp
Expand All @@ -17,9 +22,13 @@ COPY s6-rc.d/ /etc/s6-overlay/s6-rc.d/
WORKDIR /opt/speedtest/

# Update image and install/extract Ookla Speedtest
RUN apk --no-cache upgrade \
&& wget https://install.speedtest.net/app/cli/ookla-speedtest-1.2.0-linux-x86_64.tgz \
&& tar -xof ookla-speedtest-1.2.0-linux-x86_64.tgz
RUN wget https://install.speedtest.net/app/cli/ookla-speedtest-1.2.0-linux-x86_64.tgz \
&& tar -xof ookla-speedtest-1.2.0-linux-x86_64.tgz \
&& apt-get --yes remove xz-utils wget \
&& apt-get --yes autoremove

# Copy files
COPY speedtest.sh /opt/scripts/

# Set entrypoint
ENTRYPOINT ["/init"]
Expand Down
2 changes: 1 addition & 1 deletion speedtest/s6-rc.d/init-speedtest/up
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/command/execlineb -P
/opt/speedtest/speedtest --accept-license --progress=no
/opt/scripts/speedtest.sh
2 changes: 2 additions & 0 deletions speedtest/speedtest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
/opt/speedtest/speedtest --accept-license --progress=no
Loading