You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
david
5a986d1c8f
|
3 years ago | |
---|---|---|
public/styles | 3 years ago | |
swarm | 3 years ago | |
views | 3 years ago | |
.dockerignore | 3 years ago | |
.gitignore | 3 years ago | |
Dockerfile | 3 years ago | |
README.md | 3 years ago | |
database.js | 3 years ago | |
docker-compose.yml | 3 years ago | |
index.js | 3 years ago | |
netmon.py | 3 years ago | |
package-lock.json | 3 years ago | |
package.json | 3 years ago | |
postcss.config.js | 3 years ago | |
supervisord.conf | 3 years ago | |
tailwind.config.js | 3 years ago |
README.md
netmon
super basic way to run
touch db.sqlite3
docker run --rm -d \
--name netmon \
-p 4000:3000 \
-e dstHost=1.1.1.1 \
-e dstPort=53 \
--mount type=bind,source=$(pwd)/db.sqlite3,target=/app/db.sqlite3 \
daveplsno/netmon:latest
or for a much more painful but more premium way to run, check the files in the swarm folder
bunch of misc cmds used along the way
docker run --rm -it --name pls -w /app -p 3000:3000 -p 5000:5000 -e dstHost=localhost -e dstPort=8000 -e TZ=Australia/Sydney -v /home/blender/projects/netmon:/app nikolaik/python-nodejs:python3.9-nodejs16-alpine sh
docker exec -it pls sh
apk add sqlite
npm install -g nodemon
npm install express sqlite
python -m http.server 8000
export dstHost=localhost dstPort=8000
python netmon.py monitor
sqlite3 db.sqlite3
.headers on
.mode column
`SELECT * FROM netmonResults;`
npm install -D tailwindcss@latest postcss@latest autoprefixer@latest postcss-cli
npm install tailwindcss postcss autoprefixer postcss-cli
dev outside the container
python3 -m http.server 8000
python3 netmon.py monitor
npm run dev