scirius icon indicating copy to clipboard operation
scirius copied to clipboard

Install fails using Debian Stretch (latest dockerfile)

Open alphaDev23 opened this issue 6 years ago • 4 comments

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 avatar Sep 01 '18 05:09 alphaDev23

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 [email protected] &&
npm install RUN python manage.py migrate &&
python manage.py createsuperuser &&
webpack CMD python manage.py runserver

alphaDev23 avatar Sep 01 '18 18:09 alphaDev23

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

pevma avatar Sep 03 '18 08:09 pevma

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..

alphaDev23 avatar Sep 04 '18 14:09 alphaDev23

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

regit avatar Sep 04 '18 16:09 regit