#!/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 } $@