<commit_before># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# Copyright (c) 2014 Mozilla Corporation
#
# Contributors:
# <NAME> <EMAIL>
# <NAME> <EMAIL>

# Project: MozDef
# Author: 2xyo <<EMAIL>>
# Date: 2014
# usage:
#	make build	- build new image from Dockerfile
#	make debug	- debug run already created image by tag
#	make try	- build and run in debug mode

NAME=mozdef
VERSION=0.1


build:
	docker build -t $(NAME):$(VERSION) .

build-no-cache:
	docker build --no-cache -t $(NAME):$(VERSION) .

run:
	docker run -p 3000:3000 -p 9090:9090 -p 9200:9200 -p 8080:8080 -p 8081:8081 \
		-h $(NAME) -d $(NAME):$(VERSION)

debug:build
	docker run -p 3000:3000 -p 9090:9090 -p 9200:9200 -p 8080:8080 -p 8081:8081 \
		-v $(shell pwd)/container/var/lib/elasticsearch:/var/lib/elasticsearch \
		-v $(shell pwd)/container/var/log/elasticsearch:/var/log/elasticsearch \
		-v $(shell pwd)/container/var/lib/mongodb:/var/lib/mongodb \
		-v $(shell pwd)/container/var/log/mongodb:/var/log/mongodb \
		-v $(shell pwd)/container/var/log/nginx:/var/log/nginx \
		-v $(shell pwd)/container/var/log/mozdef:/var/log/mozdef \
	 	-h $(NAME) -t -i $(NAME):$(VERSION) /bin/bash


try: build run


.PHONY: build debug run
<commit_msg>Update makefile to add new ports<commit_after># This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# Copyright (c) 2014 Mozilla Corporation
#
# Contributors:
# <NAME> <EMAIL>
# <NAME> <EMAIL>

# Project: MozDef
# Author: 2xyo <<EMAIL>>
# Date: 2014
# usage:
#	make build	- build new image from Dockerfile
#	make debug	- debug run already created image by tag
#	make try	- build and run in debug mode

NAME=mozdef
VERSION=0.1


build:
	docker build -t $(NAME):$(VERSION) ..

build-no-cache:
	docker build --no-cache -t $(NAME):$(VERSION) ..

run:
	docker run \
		-e TZ=UTC \
		-p 80:80 \
		-p 5672:5672 \
		-p 9090:9090 \
		-p 9200:9200 \
		-p 8080:8080 \
		-p 8081:8081 \
		-h $(NAME) -d $(NAME):$(VERSION)

debug:build
	docker run -p 3000:3000 -p 9090:9090 -p 9200:9200 -p 8080:8080 -p 8081:8081 \
		-v $(shell pwd)/container/var/lib/elasticsearch:/var/lib/elasticsearch \
		-v $(shell pwd)/container/var/log/elasticsearch:/var/log/elasticsearch \
		-v $(shell pwd)/container/var/lib/mongodb:/var/lib/mongodb \
		-v $(shell pwd)/container/var/log/mongodb:/var/log/mongodb \
		-v $(shell pwd)/container/var/log/nginx:/var/log/nginx \
		-v $(shell pwd)/container/var/log/mozdef:/var/log/mozdef \
	 	-h $(NAME) -t -i $(NAME):$(VERSION) /bin/bash


try: build run


.PHONY: build debug run

{'fraction_non_alphanumeric': 0.15761258041458184, 'fraction_numerical': 0.06933523945675482, 'mean_word_length': 3.2537993920972643, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4176908', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1052, 'n_words': 311}