mirror of
https://github.com/gravitational/teleport
synced 2024-10-22 10:13:21 +00:00
Merge pull request #1568 from gravitational/roman/dockerpro
Allow to pick pro or enterprise mode in docker flow
This commit is contained in:
commit
4a5fba0767
|
@ -1,3 +1,10 @@
|
|||
# location of the test enterprise license file
|
||||
ENTERPRISE_LICENSE ?= ../e/fixtures/license-enterprise.pem
|
||||
# location of the test pro license file
|
||||
PRO_LICENSE ?= ../e/fixtures/license-pro.pem
|
||||
# whether to look for enterprise or pro license
|
||||
MODE ?= enterprise
|
||||
|
||||
#
|
||||
# Default target starts two Teleport clusters
|
||||
#
|
||||
|
@ -53,14 +60,15 @@ setup-tc:
|
|||
delete-tc:
|
||||
docker exec -i two-auth /bin/bash -c "tctl -c /root/go/src/github.com/gravitational/teleport/docker/two-auth.yaml rm tc/one"
|
||||
|
||||
# location of test license file
|
||||
TEST_LICENSE ?= ../e/fixtures/license.pem
|
||||
|
||||
.PHONY: check-license
|
||||
check-license:
|
||||
@if [ -f $(TEST_LICENSE) ]; then \
|
||||
mkdir -p ./data/one && cp $(TEST_LICENSE) ./data/one; \
|
||||
mkdir -p ./data/two/auth && cp $(TEST_LICENSE) ./data/two/auth; \
|
||||
@if [ $(MODE) = "enterprise" ] && [ -f $(ENTERPRISE_LICENSE) ]; then \
|
||||
mkdir -p ./data/one && cp $(ENTERPRISE_LICENSE) ./data/one/license.pem; \
|
||||
mkdir -p ./data/two/auth && cp $(ENTERPRISE_LICENSE) ./data/two/auth/license.pem; \
|
||||
fi
|
||||
@if [ $(MODE) = "pro" ] && [ -f $(PRO_LICENSE) ]; then \
|
||||
mkdir -p ./data/one && cp $(PRO_LICENSE) ./data/one/license.pem; \
|
||||
mkdir -p ./data/two/auth && cp $(PRO_LICENSE) ./data/two/auth/license.pem; \
|
||||
fi
|
||||
|
||||
.PHONY: build
|
||||
|
|
2
e
2
e
|
@ -1 +1 @@
|
|||
Subproject commit bb57cea60870675e94ab82530294885ddd5ed46d
|
||||
Subproject commit 1b07ab3783aaffd52ed538bacbd669bfe58fedcc
|
Loading…
Reference in a new issue