This repository has been archived by the owner on Sep 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 790
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
308 changed files
with
13,435 additions
and
4,442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
|
||
# Copyright 2014 Netflix, Inc. | ||
# Copyright 2018 Netflix, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -13,34 +12,31 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
FROM ubuntu:14.04 | ||
FROM ubuntu:latest | ||
MAINTAINER Netflix Open Source Development <[email protected]> | ||
|
||
ENV SECURITY_MONKEY_VERSION=v0.9.2 \ | ||
ENV SECURITY_MONKEY_VERSION=v1.0 \ | ||
SECURITY_MONKEY_SETTINGS=/usr/local/src/security_monkey/env-config/config-docker.py | ||
|
||
RUN apt-get update &&\ | ||
apt-get -y -q install python-software-properties software-properties-common postgresql-9.3 postgresql-client-9.3 postgresql-contrib-9.3 curl &&\ | ||
apt-get install -y python-pip python-dev python-psycopg2 libffi-dev libpq-dev libyaml-dev libxml2-dev libxmlsec1-dev git sudo swig &&\ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip install setuptools --upgrade | ||
RUN pip install pip --upgrade | ||
RUN pip install "urllib3[secure]" --upgrade | ||
|
||
RUN cd /usr/local/src &&\ | ||
# git clone --branch $SECURITY_MONKEY_VERSION https://github.com/Netflix/security_monkey.git | ||
/bin/mkdir -p security_monkey | ||
ADD . /usr/local/src/security_monkey | ||
|
||
RUN cd /usr/local/src/security_monkey &&\ | ||
python setup.py install &&\ | ||
/bin/mkdir -p /var/log/security_monkey/ | ||
|
||
RUN chmod +x /usr/local/src/security_monkey/docker/*.sh &&\ | ||
mkdir -pv /var/log/security_monkey &&\ | ||
/usr/bin/touch /var/log/security_monkey/securitymonkey.log | ||
# ln -s /dev/stdout /var/log/security_monkey/securitymonkey.log | ||
SHELL ["/bin/bash", "-c"] | ||
RUN apt-get update && \ | ||
apt-get install -y wget build-essential python-pip python-dev python-psycopg2 postgresql postgresql-contrib libpq-dev nginx supervisor git libffi-dev gcc python-virtualenv -y && \ | ||
cd /usr/local/src/security_monkey && \ | ||
chown -R www-data /usr/local/src/security_monkey && \ | ||
virtualenv venv && \ | ||
source venv/bin/activate && \ | ||
pip install setuptools --upgrade && \ | ||
pip install pip --upgrade && \ | ||
pip install "urllib3[secure]" --upgrade && \ | ||
pip install google-compute-engine && \ | ||
pip install cloudaux\[gcp\] && \ | ||
pip install cloudaux\[openstack\] && \ | ||
pip install . && \ | ||
/bin/mkdir -p /var/log/security_monkey/ && \ | ||
chmod +x /usr/local/src/security_monkey/docker/*.sh && \ | ||
/usr/bin/touch /var/log/security_monkey/securitymonkey.log | ||
|
||
WORKDIR /usr/local/src/security_monkey | ||
EXPOSE 5000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
""" | ||
.. module: celeryconfig | ||
:platform: Unix | ||
:synopsis: Use this file to set up the Celery configuration for task scheduling. | ||
.. version:: $$VERSION$$ | ||
.. moduleauthor:: Mike Grima <[email protected]> | ||
""" | ||
# Broker source: Place yours here: | ||
broker_url = 'redis://localhost:6379/0' # Default assume Redis on localhost | ||
|
||
# List of modules to import when the Celery worker starts. | ||
imports = ('security_monkey.task_scheduler.tasks',) | ||
|
||
# How many processes per worker instance? | ||
worker_concurrency = 10 | ||
|
||
timezone = "UTC" | ||
enable_utc = True | ||
|
||
########################### | ||
# IMPORTANT: This helps avoid memory leak issues - do not change this number! | ||
worker_max_tasks_per_child = 1 | ||
############################ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 13 additions & 1 deletion
14
dart/lib/component/settings/watcher_config_component/watcher_config_component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.