Skip to content

Commit 35406f7

Browse files
Merge pull request #41 from plaintextpackets/lighter_base
Lighter base
2 parents 6a9b362 + 1945e7f commit 35406f7

File tree

2 files changed

+42
-9
lines changed

2 files changed

+42
-9
lines changed

Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
FROM ubuntu:latest
1+
# Dockerfile for netprobe_lite
2+
# https://github.com/plaintextpackets/netprobe_lite/
3+
FROM python:3.11-slim-bookworm
24

35
COPY requirements.txt /netprobe_lite/requirements.txt
46

57
# Install python/pip
68
ENV PYTHONUNBUFFERED=1
7-
RUN apt-get update -y \
8-
&& apt-get install -y python3 \
9-
&& apt-get install -y python3-pip \
10-
&& apt-get install -y iputils-ping \
11-
&& pip install -r /netprobe_lite/requirements.txt
9+
ENV PIP_DISABLE_PIP_VERSION_CHECK=on
10+
11+
RUN apt-get update && apt-get install -y iputils-ping && apt-get clean \
12+
&& pip install -r /netprobe_lite/requirements.txt --break-system-packages
1213

1314
WORKDIR /netprobe_lite
1415

15-
ENTRYPOINT [ "/bin/bash", "./entrypoint.sh" ]
16+
ENTRYPOINT [ "/bin/bash", "./entrypoint.sh" ]

README.md

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ docker compose down
5151

5252
### Change Netprobe port
5353

54-
To change the port that Netprobe is running on, edit the 'compose.yml' file, under the 'grafana' section:
54+
To change the port that Netprobe Lite is running on, edit the 'compose.yml' file, under the 'grafana' section:
5555

5656
```
5757
ports:
5858
- '3001:3000'
5959
```
6060

61-
Change the port on the left to the port you want to access Netprobe on
61+
Change the port on the left to the port you want to access Netprobe Lite on
6262

6363
### Customize DNS test
6464

@@ -152,6 +152,38 @@ restart: always
152152

153153
More information can be found in the Docker documentation.
154154

155+
## FAQ & Troubleshooting
156+
157+
Q. How do I reset my Grafana password?
158+
159+
A. Delete the docker volume for grafana. This will reset your password but will leave your data:
160+
161+
```
162+
docker volume rm netprobe_grafana_data
163+
```
164+
165+
Q. I am running Pihole and when I enter my host IP under 'DNS_NAMESERVER_4_IP=' I receive this error:
166+
167+
```
168+
The resolution lifetime expired after 5.138 seconds: Server Do53:192.168.0.91@53 answered got a response from ('172.21.0.1', 53) instead of ('192.168.0.91', 53)
169+
```
170+
A. This is a limitation of Docker. If you are running another DNS server in Docker and want to test it in Netprobe, you need to specify the Docker network gateway IP:
171+
172+
1. Stop netprobe but don't wipe it (docker compose down)
173+
2. Find the gateway IP of your netprobe-probe container:
174+
```
175+
$ docker inspect netprobe-probe | grep Gateway
176+
"Gateway": "",
177+
"IPv6Gateway": "",
178+
"Gateway": "192.168.208.1",
179+
"IPv6Gateway": "",
180+
```
181+
3. Enter that IP (e.g. 182.168.208.1) into your .env file for 'DNS_NAMESERVER_4_IP='
182+
183+
Q. I constantly see one of my DNS servers at 5s latency, is this normal?
184+
185+
A. 5s is the timeout for DNS queries in Netprobe Lite. If you see this happening for one specific IP, likely your machine is having issues using that DNS server (and so you shouldn't use it for home use).
186+
155187
## License
156188

157189
This project is released under a custom license that restricts commercial use. You are free to use, modify, and distribute the software for non-commercial purposes. Commercial use of this software is strictly prohibited without prior permission. If you have any questions or wish to use this software commercially, please contact [[email protected]].

0 commit comments

Comments
 (0)