mirror of
https://github.com/gravitational/teleport
synced 2024-10-22 10:13:21 +00:00
36 lines
895 B
Makefile
36 lines
895 B
Makefile
#
|
|
# 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
|