Skip to content

Commit

Permalink
Update Makefile to inject config (apache#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ellenburg authored and Arthur Rand committed Jan 23, 2018
1 parent dc4f8d3 commit 8f593ee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,14 @@ test-env:
pip3 install -r tests/requirements.txt

CF_TEMPLATE_URL ?= https://s3.amazonaws.com/downloads.mesosphere.io/dcos-enterprise/testing/master/cloudformation/ee.single-master.cloudformation.json
cluster-url:
config.yaml:
$(eval export DCOS_LAUNCH_CONFIG_BODY)
echo "$$DCOS_LAUNCH_CONFIG_BODY" > config.yaml

cluster-url: config.yaml
@if [ -z $(CLUSTER_URL) ]; then \
source $(ROOT_DIR)/test-env/bin/activate; \
echo "$$DCOS_LAUNCH_CONFIG_BODY" > dcos_launch_config.yaml; \
dcos-launch create -c dcos_launch_config.yaml; \
dcos-launch create; \
dcos-launch wait; \
echo https://`dcos-launch describe | jq -r .masters[0].public_ip` > $@; \
else \
Expand Down

0 comments on commit 8f593ee

Please sign in to comment.