Skip to content

Commit c360729

Browse files
feat(Makefile): add dev-cluster command
1 parent b79add8 commit c360729

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ dev-registry: check-docker
1616
@echo "To use local boot2docker registry for Deis development:"
1717
@echo " export DEV_REGISTRY=`boot2docker ip 2>/dev/null`:5000"
1818

19+
dev-cluster: discovery-url
20+
vagrant up
21+
ssh-add ~/.vagrant.d/insecure_private_key
22+
deisctl config platform set sshPrivateKey=$(HOME)/.vagrant.d/insecure_private_key
23+
deisctl config platform set domain=local3.deisapp.com
24+
deisctl install platform
25+
1926
discovery-url:
2027
sed -e "s,# discovery:,discovery:," -e "s,discovery: https://discovery.etcd.io/.*,discovery: $$(curl -s -w '\n' https://discovery.etcd.io/new)," contrib/coreos/user-data.example > contrib/coreos/user-data
2128

docs/contributing/hacking.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ Test connectivity using ``deisctl list``:
7474
7575
$ deisctl list
7676
77+
Start Up a Development Cluster
78+
------------------------------
79+
80+
To start up and configure a local vagrant cluster for development, you can use the ``dev-cluster`` target.
81+
This requires that ``deisctl`` and ``vagrant`` are installed.
82+
83+
.. code-block:: console
84+
85+
$ make dev-cluster
86+
7787
Configure a Docker Registry
7888
---------------------------
7989

0 commit comments

Comments
 (0)