Created a new entrypoint to allow eula automatic exception
This commit is contained in:
@@ -4,6 +4,7 @@ RUN curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/scr
|
|||||||
|
|
||||||
RUN yum -y install speedtest
|
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"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
7
entrypoint.sh
Normal file
7
entrypoint.sh
Normal file
@@ -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 "$@"
|
||||||
Reference in New Issue
Block a user