scripts/lech/docker/scrutiny.sh

37 lines
767 B
Bash
Raw Permalink Normal View History

2024-12-16 20:33:10 -05:00
#!/bin/bash
set -e
up () {
docker network create pew-net || true
# 8080 -> webapp
# 8086 -> influxdb admin
docker run \
--detach \
--name scrutiny \
--restart unless-stopped \
--cap-add SYS_RAWIO \
--device=/dev/sda \
--device=/dev/sdb \
--device=/dev/sdc \
--device=/dev/sdd \
--device=/dev/sde \
--device=/dev/sdf \
--device=/dev/sdg \
--device=/dev/sdh \
--device=/dev/sdi \
--volume /run/udev:/run/udev:ro \
--volume /mammoth/scrutiny/scrutiny/config:/opt/scrutiny/config:rw \
--volume /mammoth/scrutiny/influxdb:/opt/scrutiny/influxdb:rw \
--network pew-net \
ghcr.io/analogj/scrutiny:master-omnibus
}
down () {
docker stop scrutiny || true
docker rm scrutiny || true
}
$@