<commit_before>#
# This Makefile is used for CI/CD builds. Please be careful!
#
BBOX=teleport-buildbox:latest
OUT="../"

#
# builds 'teleport' binary and places it $(OUT) dir
#
build: bbox
	docker run -i --rm=true \
		   -v $$(pwd)/../:/gopath/src/github.com/gravitational/teleport \
		   -u $$(id -u):$$(id -g) \
		   $(BBOX) \
		   /bin/bash -c "make -C /gopath/src/github.com/gravitational/teleport clean all"
	@echo "\nSUCCESS ----> $(OUT)teleport"
	@echo "SUCCESS ----> $(OUT)tctl"
	@echo "SUCCESS ----> $(OUT)tsh"

#
# builds buildbox:1.0.0 Docker container which is Debian8 with Golang 1.4.2
#
bbox:
	docker build --tag $(BBOX) .


#
# starts teleport inside a build container
#
run: build
	docker run -i --rm=true \
		   -v $$(pwd)/../:/gopath/src/github.com/gravitational/teleport \
		   -u $$(id -u):$$(id -g) \
		   $(BBOX) \
		   /gopath/src/github.com/gravitational/teleport/out/teleport start -d<commit_msg>launch tests as a build step<commit_after>#
# This Makefile is used for CI/CD builds. Please be careful!
#
BBOX=teleport-buildbox:latest
OUT="../"

#
# builds 'teleport' binary and places it $(OUT) dir
#
build: bbox
	docker run -i --rm=true \
		   -v $$(pwd)/../:/gopath/src/github.com/gravitational/teleport \
		   -u $$(id -u):$$(id -g) \
		   $(BBOX) \
		   /bin/bash -c "make -C /gopath/src/github.com/gravitational/teleport clean test all"
	@echo "\nSUCCESS ----> $(OUT)teleport"
	@echo "SUCCESS ----> $(OUT)tctl"
	@echo "SUCCESS ----> $(OUT)tsh"

#
# builds buildbox:1.0.0 Docker container which is Debian8 with Golang 1.4.2
#
bbox:
	docker build --tag $(BBOX) .


#
# starts teleport inside a build container
#
run: build
	docker run -i --rm=true \
		   -v $$(pwd)/../:/gopath/src/github.com/gravitational/teleport \
		   -u $$(id -u):$$(id -g) \
		   $(BBOX) \
		   /gopath/src/github.com/gravitational/teleport/out/teleport start -d
{'fraction_non_alphanumeric': 0.19226638023630505, 'fraction_numerical': 0.007518796992481203, 'mean_word_length': 2.7334669338677355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '770837', 'n_tokens_mistral': 770, 'n_tokens_neox': 708, 'n_words': 179}