StamusNetworks / scirius

Scirius is a web application for Suricata ruleset management and threat hunting.
GNU General Public License v3.0
621 stars 148 forks source link

Install fails using Debian Stretch (latest dockerfile) #152

Open alphaDev23 opened 6 years ago

alphaDev23 commented 6 years ago

Instructions show npm install via apt-get: https://scirius.readthedocs.io/en/latest/installation-ce.html surius-docker use debian:latest as its base: https://github.com/StamusNetworks/suricata-docker/blob/master/Dockerfile

npm fails using the instructions from "read the docs." It would be great to have the install instructions updated as the install on debian:jessie appears to have other install issues.

alphaDev23 commented 6 years ago

The below modification (which install nodejs and npm) to a Dockerfile allow it the container to build but there is no web interface even though the port 8000 is listening (exposed via a docker-compose file.

Are there any up to date install instruction that have been tested and/or how is the install below incorrect?

FROM debian:stretch-20180716 RUN apt-get update && apt-get -y upgrade && apt-get -y install \ git python-pip python-dev build-essential curl WORKDIR /tmp RUN git clone https://github.com/StamusNetworks/scirius.git WORKDIR /tmp/scirius RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - RUN apt-get update && apt-get -y install \ nodejs npm RUN pip install -r requirements.txt && \ pip install pyinotify RUN npm install -g npm@latest webpack@3.11 && \ npm install RUN python manage.py migrate && \ python manage.py createsuperuser && \ webpack CMD python manage.py runserver

pevma commented 6 years ago

Thank for reporting this. Is there any err when you open the web interface?

alphaDev23 commented 6 years ago

The web interface is accessible; however, the site doesn't display correctly. It appears the templates do not load so there are no images, everything is left justified, the log in forms appear as html forms, etc..

regit commented 6 years ago

Just after the manage.py migrate you need to add a call to manage.py collectstatic. If scirius is correctly setup it should help.