Skip to content

Commit

Permalink
fix: Change to Debian (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKobayashi authored Sep 26, 2024
1 parent 7a950a0 commit e51249a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
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

0 comments on commit e51249a

Please sign in to comment.