plaintextpackets / netprobe_lite

Simple internet performance tester written in Python
618 stars 122 forks source link

Installation on QNAP #19

Open stewface opened 4 months ago

stewface commented 4 months ago

I'm trying to get this installed on my qnap server, does it happen to appear in the docker hub?

Usually I can installed docker apps by going through ssh with a command like:

docker run -d \ kschovan/netprobelite

Any other tips on getting it installed, looks like the exact thing I have been looking for to keep an eye on my internet (that often seems to perform subpar)

NicolasCARPi commented 4 months ago

Hello,

It is quite likely that your NAS has an ARM CPU architecture. See discussion on #22.

stewface commented 4 months ago

Thanks for coming back! Got a nice x86 one :) so that should be fine.

NicolasCARPi commented 4 months ago

Oh I misread your issue, I thought you had problems running on NAS, but you were just asking for information. Look at the README to get started, it uses docker compose, much better than individual run commands!

suzunov commented 4 months ago

Hi,

@stewface I am running it on a QNAP x86 via container station. Creating an application in container station is pretty much docker compose, so no issues there.

stewface commented 4 months ago

Great to hear! Any tips on how to learn how to get them running in it? I would love to figure it out.

suzunov commented 4 months ago

The easiest way is to open a terminal, clone the repo in a folder of your choice. CD to the repo folder and then docker compose up -d. I would like to be able to see various container data and statistics hence I an using container station and here is a quick how-to.

  1. Clone the repo in the Container station folder (not 100% sure, but in most of the cases it should be "/share/CACHEDEV1_DATA/Container"). If you do prefer working with the GUI, please download the repo in a zip format open the File Station app go to the "Container folder" and put the unzipped version of the code so you have "Container/netprobe_lite/" structure in your file system and then all the files and folders from the repo inside
  2. Open Container station >> Applications >> Create >> put whatever name you like and use the slightly modified docker-compose file Few notes:
    • please make sure that the paths below correspond to your paths
    • user: "0" is added due to lack of permission to the file system. You need to double check you are running with the same user ID. In case you are using the default "admin" user, this is the correct ID. If you are using the system with a different user in terminal type "id your_username" replacing your_username with what is correct for you and you will get the ID
    • I have changed the grafana port from 3001 to 3000 as I have another container using that port
    • you should be able to access grafana by YOUR_NAS_IP:3000

version: '3.8' # Use the desired Docker Compose version

networks: mynetwork: driver: bridge ipam: config:

services: redis: restart: unless-stopped container_name: netprobe-redis image: "redis:latest" volumes:

stewface commented 4 months ago

Thanks @suzunov

Fantastic documentation, I think I made sense of it all. I gave it the first attempt but haven't got it working yet, but I will give it a few more runs through to see what isn't working.

plaintextpackets commented 3 months ago

Any luck

suzunov commented 3 months ago

@stewface what kind og errors do you get and at what step? Anything I can help with?