Merge remote-tracking branch 'origin/develop' into develop
# Conflicts: # infection_monkey/example.conf
This commit is contained in:
commit
79db44d4ea
|
@ -0,0 +1,27 @@
|
||||||
|
group: travis_latest
|
||||||
|
language: python
|
||||||
|
cache: pip
|
||||||
|
python:
|
||||||
|
- 2.7
|
||||||
|
- 3.6
|
||||||
|
#- nightly
|
||||||
|
#- pypy
|
||||||
|
#- pypy3
|
||||||
|
matrix:
|
||||||
|
allow_failures:
|
||||||
|
- python: nightly
|
||||||
|
- python: pypy
|
||||||
|
- python: pypy3
|
||||||
|
install:
|
||||||
|
#- pip install -r requirements.txt
|
||||||
|
- pip install flake8 # pytest # add another testing frameworks later
|
||||||
|
before_script:
|
||||||
|
# stop the build if there are Python syntax errors or undefined names
|
||||||
|
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
|
||||||
|
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
||||||
|
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||||
|
script:
|
||||||
|
- true # pytest --capture=sys # add other tests here
|
||||||
|
notifications:
|
||||||
|
on_success: change
|
||||||
|
on_failure: change # `always` will be the setting once code changes slow down
|
|
@ -0,0 +1,19 @@
|
||||||
|
FROM debian:jessie-slim
|
||||||
|
|
||||||
|
LABEL MAINTAINER="theonlydoo <theonlydoo@gmail.com>"
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
ADD https://github.com/guardicore/monkey/releases/download/1.5.2/infection_monkey_1.5.2_deb.tgz .
|
||||||
|
|
||||||
|
RUN tar xvf infection_monkey_1.5.2_deb.tgz \
|
||||||
|
&& apt-get -yqq update \
|
||||||
|
&& apt-get -yqq upgrade \
|
||||||
|
&& apt-get -yqq install python-pip \
|
||||||
|
libssl-dev \
|
||||||
|
supervisor \
|
||||||
|
&& dpkg -i *.deb
|
||||||
|
|
||||||
|
COPY stack.conf /etc/supervisor/conf.d/stack.conf
|
||||||
|
|
||||||
|
ENTRYPOINT [ "supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf" ]
|
|
@ -0,0 +1,11 @@
|
||||||
|
# Improvements needed
|
||||||
|
|
||||||
|
* Remove embedded mongodb from .deb, it forbids installation on a `debian:stretch` distro.
|
||||||
|
* Package monkey for system's python usage.
|
||||||
|
* Fix package number: (I installed the 1.5.2)
|
||||||
|
```
|
||||||
|
ii gc-monkey-island 1.0 amd64 Guardicore Infection Monkey Island installation package
|
||||||
|
```
|
||||||
|
* Use .deb dependencies for mongodb setup?
|
||||||
|
* Use docker-compose for stack construction.
|
||||||
|
* Remove the .sh script from the systemd unit file (`/var/monkey_island/ubuntu/systemd/start_server.sh`) which only does a `cd && localpython run`
|
|
@ -0,0 +1,4 @@
|
||||||
|
[program:mongod]
|
||||||
|
command=/var/monkey_island/bin/mongodb/bin/mongod --quiet --dbpath /var/monkey_island/db
|
||||||
|
[program:monkey]
|
||||||
|
command=/var/monkey_island/ubuntu/systemd/start_server.sh
|
|
@ -5,4 +5,4 @@ Homepage: http://www.guardicore.com
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Version: 1.0
|
Version: 1.0
|
||||||
Description: Guardicore Infection Monkey Island installation package
|
Description: Guardicore Infection Monkey Island installation package
|
||||||
Depends: openssl, python-pip
|
Depends: openssl, python-pip, python-dev
|
||||||
|
|
Loading…
Reference in New Issue