speed-cloudflare-cli icon indicating copy to clipboard operation
speed-cloudflare-cli copied to clipboard

Docker container

Open luc122c opened this issue 3 years ago • 7 comments

Hi there. I found myself wanting to use this on a number of machines which all had docker installed. I quickly build your script into a distroless docker container. I've also setup a Github action to publish it as a package so it's available more widely.

luc122c avatar Jun 21 '21 16:06 luc122c

Hey, thanks for the contribution but I'm not sure if it would be very useful, mind sharing your opinion?

KNawm avatar Jun 21 '21 22:06 KNawm

As I mentioned, this is useful when you want to use this application on a system which may not have node/npm installed, but does have a docker runtime. You can easily use this in a single command without having to install any software. With the --rm flag, there is no extra cleanup required (uninstalling etc). The same command can be used on multiple systems with the exact same results, regardless of the environment.

luc122c avatar Jun 22 '21 15:06 luc122c

Was hoping for something like this, tested it on my server and it works great!

apalfrey avatar Jun 23 '21 15:06 apalfrey

Can Multiarch support be added?

agneevX avatar Jun 30 '21 12:06 agneevX

I used a distroless image as a base for performance and security. There is a discussion about multi-arch support here: https://github.com/GoogleContainerTools/distroless/issues/346. Once this happens, it should filter upstream to this image.

luc122c avatar Jun 30 '21 13:06 luc122c

This is perfect ffor speedtesting K8s on-prem nodes and my swarm of Flatcar linux vms

CappyT avatar Sep 22 '23 09:09 CappyT

I see someone posted up a docker version of this at https://hub.docker.com/r/p3terx/speed-cloudflare

daluu avatar Oct 05 '23 01:10 daluu