Open alphaDev23 opened 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
Thank for reporting this. Is there any err when you open the web interface?
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..
Just after the manage.py migrate
you need to add a call to manage.py collectstatic
. If scirius is correctly setup it should help.
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.