From 7a4f31ec7e479ad4d0747d25744db1ca6b8b8f7e Mon Sep 17 00:00:00 2001 From: Stephen Simpson Date: Sat, 17 Aug 2024 12:45:49 -0500 Subject: [PATCH] Created a new entrypoint to allow eula automatic exception --- Dockerfile | 5 +++-- entrypoint.sh | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 entrypoint.sh diff --git a/Dockerfile b/Dockerfile index a8faedc..72de729 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ RUN curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/scr RUN yum -y install speedtest -RUN echo alias speedtest=\'speedtest --accept-license\' >> ~/.bashrc +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh -CMD ["speedtest", "--accept-license"] \ No newline at end of file +ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..4768b32 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +# Set terminal type +export TERM=xterm-256color + +# Run xsos with all arguments passed to the container +/usr/bin/speedtest --accept-license "$@" \ No newline at end of file