#!/bin/bash
# Ruta almacenamiento de BBDD de Vulnerabilidades
RUTA=${HOME}/vuls/config

docker pull ishidaco/vulsrepo

if [[ $(tty) =~ "not a tty" ]]
then
    t=''
else
    t="-t"
fi

docker run -d $t \
    -v $RUTA:/vuls \
    -p 5111:5111 \
    ishidaco/vulsrepo \
    $@

echo -e "\nPuede ver los resultados en su navegador en:\nhttp://localhost:5111/ \n"
