зеркало из https://github.com/mozilla/MozDef.git
Resolved merge conflict
This commit is contained in:
Коммит
01093c2340
2
Makefile
2
Makefile
|
@ -28,7 +28,7 @@ run-only:
|
||||||
|
|
||||||
.PHONY: run-cloudy-mozdef
|
.PHONY: run-cloudy-mozdef
|
||||||
run-cloudy-mozdef: ## Run the MozDef containers necessary to run in AWS (`cloudy-mozdef`). This is used by the CloudFormation-initiated setup.
|
run-cloudy-mozdef: ## Run the MozDef containers necessary to run in AWS (`cloudy-mozdef`). This is used by the CloudFormation-initiated setup.
|
||||||
docker-compose -f -f $(USE_DKR_IMAGES) -f docker/compose/docker-compose-cloudy-mozdef.yml -p $(NAME) up -d
|
docker-compose -f docker/compose/docker-compose-cloudy-mozdef.yml -p $(NAME) up -d
|
||||||
|
|
||||||
# TODO? add custom test targets for individual tests (what used to be `multiple-tests` for example
|
# TODO? add custom test targets for individual tests (what used to be `multiple-tests` for example
|
||||||
# The docker files are still in docker/compose/docker*test*
|
# The docker files are still in docker/compose/docker*test*
|
||||||
|
|
|
@ -100,7 +100,8 @@ Resources:
|
||||||
path: /opt/mozdef/docker/compose/cloudy_mozdef.env
|
path: /opt/mozdef/docker/compose/cloudy_mozdef.env
|
||||||
runcmd:
|
runcmd:
|
||||||
- chmod 600 /opt/mozdef/docker/compose/cloudy_mozdef.env
|
- chmod 600 /opt/mozdef/docker/compose/cloudy_mozdef.env
|
||||||
- make -C /opt/mozdef -f /opt/mozdef/Makefile # run-cloudy-mozdef
|
- cd /opt/mozdef && git pull infosec_workweek
|
||||||
|
- make -C /opt/mozdef -f /opt/mozdef/Makefile # USE_DKR_IMAGES=docker/compose/docker-compose-norebuild.yml run-cloudy-mozdef
|
||||||
MozDefAutoScaleGroup:
|
MozDefAutoScaleGroup:
|
||||||
Type: AWS::AutoScaling::AutoScalingGroup
|
Type: AWS::AutoScaling::AutoScalingGroup
|
||||||
Properties:
|
Properties:
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
"sudo yum install -y git",
|
"sudo yum install -y git",
|
||||||
"sudo yum install -y docker",
|
"sudo yum install -y docker",
|
||||||
"sudo pip install virtualenv ",
|
"sudo pip install virtualenv ",
|
||||||
|
"sudo pip install docker-compose",
|
||||||
"sudo systemctl enable docker",
|
"sudo systemctl enable docker",
|
||||||
"sudo mkdir -p /opt/mozdef/",
|
"sudo mkdir -p /opt/mozdef/",
|
||||||
"sudo git clone https://github.com/mozilla/MozDef /opt/mozdef",
|
"sudo git clone https://github.com/mozilla/MozDef /opt/mozdef",
|
||||||
|
|
|
@ -2,9 +2,7 @@
|
||||||
version: '2.2'
|
version: '2.2'
|
||||||
services:
|
services:
|
||||||
nginx:
|
nginx:
|
||||||
build:
|
image: mozdef/mozdef_nginx
|
||||||
context: ../../
|
|
||||||
dockerfile: docker/compose/nginx/Dockerfile
|
|
||||||
restart: always
|
restart: always
|
||||||
command: /usr/sbin/nginx
|
command: /usr/sbin/nginx
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -17,9 +15,7 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
mongodb:
|
mongodb:
|
||||||
build:
|
image: mozdef/mozdef_mongodb
|
||||||
context: ../../
|
|
||||||
dockerfile: docker/compose/mongodb/Dockerfile
|
|
||||||
restart: always
|
restart: always
|
||||||
command: /usr/bin/mongod --smallfiles --config /etc/mongod.conf
|
command: /usr/bin/mongod --smallfiles --config /etc/mongod.conf
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -27,9 +23,7 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
bootstrap:
|
bootstrap:
|
||||||
build:
|
image: mozdef/mozdef_bootstrap
|
||||||
context: ../../
|
|
||||||
dockerfile: docker/compose/mozdef_bootstrap/Dockerfile
|
|
||||||
env_file:
|
env_file:
|
||||||
- cloudy_mozdef.env
|
- cloudy_mozdef.env
|
||||||
command: bash -c 'source /opt/mozdef/envs/python/bin/activate && python docker/conf/initial_setup.py ${ES_URL} cron/defaultMappingTemplate.json cron/backup.conf'
|
command: bash -c 'source /opt/mozdef/envs/python/bin/activate && python docker/conf/initial_setup.py ${ES_URL} cron/defaultMappingTemplate.json cron/backup.conf'
|
||||||
|
@ -39,18 +33,14 @@ services:
|
||||||
- default
|
- default
|
||||||
# MozDef Specific Containers
|
# MozDef Specific Containers
|
||||||
base:
|
base:
|
||||||
build:
|
image: mozdef/mozdef_base
|
||||||
context: ../../
|
|
||||||
dockerfile: docker/compose/mozdef_base/Dockerfile
|
|
||||||
env_file:
|
env_file:
|
||||||
- cloudy_mozdef.env
|
- cloudy_mozdef.env
|
||||||
command: bash -c 'su - mozdef -c /opt/mozdef/envs/mozdef/cron/update_geolite_db.sh'
|
command: bash -c 'su - mozdef -c /opt/mozdef/envs/mozdef/cron/update_geolite_db.sh'
|
||||||
volumes:
|
volumes:
|
||||||
- geolite_db:/opt/mozdef/envs/mozdef/data
|
- geolite_db:/opt/mozdef/envs/mozdef/data
|
||||||
alertplugins:
|
alertplugins:
|
||||||
build:
|
image: mozdef/mozdef_alertplugins
|
||||||
context: ../../
|
|
||||||
dockerfile: docker/compose/mozdef_alertplugins/Dockerfile
|
|
||||||
env_file:
|
env_file:
|
||||||
- cloudy_mozdef.env
|
- cloudy_mozdef.env
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -62,9 +52,7 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
alerts:
|
alerts:
|
||||||
build:
|
image: mozdef/mozdef_alerts
|
||||||
context: ../../
|
|
||||||
dockerfile: docker/compose/mozdef_alerts/Dockerfile
|
|
||||||
env_file:
|
env_file:
|
||||||
- cloudy_mozdef.env
|
- cloudy_mozdef.env
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -75,9 +63,7 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
cron:
|
cron:
|
||||||
build:
|
image: mozdef/mozdef_cron
|
||||||
context: ../../
|
|
||||||
dockerfile: docker/compose/mozdef_cron/Dockerfile
|
|
||||||
env_file:
|
env_file:
|
||||||
- cloudy_mozdef.env
|
- cloudy_mozdef.env
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -91,9 +77,7 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
loginput:
|
loginput:
|
||||||
build:
|
image: mozdef/mozdef_loginput
|
||||||
context: ../../
|
|
||||||
dockerfile: docker/compose/mozdef_loginput/Dockerfile
|
|
||||||
env_file:
|
env_file:
|
||||||
- cloudy_mozdef.env
|
- cloudy_mozdef.env
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -104,9 +88,7 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
meteor:
|
meteor:
|
||||||
build:
|
image: mozdef/mozdef_meteor
|
||||||
context: ../../
|
|
||||||
dockerfile: docker/compose/mozdef_meteor/Dockerfile
|
|
||||||
restart: always
|
restart: always
|
||||||
command: bash -c 'node bundle/main.js'
|
command: bash -c 'node bundle/main.js'
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -116,9 +98,7 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
rest:
|
rest:
|
||||||
build:
|
image: mozdef/mozdef_rest
|
||||||
context: ../../
|
|
||||||
dockerfile: docker/compose/mozdef_rest/Dockerfile
|
|
||||||
env_file:
|
env_file:
|
||||||
- cloudy_mozdef.env
|
- cloudy_mozdef.env
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -130,9 +110,7 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
syslog:
|
syslog:
|
||||||
build:
|
image: mozdef/mozdef_syslog
|
||||||
context: ../../
|
|
||||||
dockerfile: docker/compose/mozdef_syslog/Dockerfile
|
|
||||||
env_file:
|
env_file:
|
||||||
- cloudy_mozdef.env
|
- cloudy_mozdef.env
|
||||||
restart: always
|
restart: always
|
||||||
|
|
|
@ -40,7 +40,8 @@ USER mozdef
|
||||||
RUN \
|
RUN \
|
||||||
virtualenv /opt/mozdef/envs/python && \
|
virtualenv /opt/mozdef/envs/python && \
|
||||||
source /opt/mozdef/envs/python/bin/activate && \
|
source /opt/mozdef/envs/python/bin/activate && \
|
||||||
pip install -r /opt/mozdef/envs/mozdef/requirements.txt
|
pip install -r /opt/mozdef/envs/mozdef/requirements.txt && \
|
||||||
|
pip install git+https://github.com/andrewkrug/configlib
|
||||||
|
|
||||||
# Local copy for dev
|
# Local copy for dev
|
||||||
COPY mozdef_util /opt/mozdef/envs/mozdef/mozdef_util
|
COPY mozdef_util /opt/mozdef/envs/mozdef/mozdef_util
|
||||||
|
|
Загрузка…
Ссылка в новой задаче