Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #759 from opdemand/vagrant_3node_makefile
Browse files Browse the repository at this point in the history
fix(contrib/vagrant): fix vagrant n-node Makefile
  • Loading branch information
Matthew Fisher committed Apr 17, 2014
2 parents 069d704 + 3d09675 commit 3d1c474
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
20 changes: 8 additions & 12 deletions contrib/vagrant/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,30 @@ COMPONENTS=registry logger database cache controller builder router

all: build run

test_client:
python -m unittest discover client.tests

pull:
$(call ssh_all,'for c in $(COMPONENTS); do docker pull deis/$$c; done')

build:
$(call ssh_all,'cd share && for c in $(COMPONENTS); do cd $$c && docker build -t deis/$$c . && cd ..; done')

install:
for c in $(COMPONENTS); do fleetctl enable ../../$$c/systemd/*; done
for c in $(COMPONENTS); do fleetctl --strict-host-key-checking=false submit ../../$$c/systemd/*; done

uninstall: stop
for c in $(COMPONENTS); do fleetctl disable ../../$$c/systemd/*; done
for c in $(COMPONENTS); do fleetctl --strict-host-key-checking=false destroy ../../$$c/systemd/*; done

start:
for c in $(COMPONENTS); do fleetctl start ../../$$c/systemd/*; done
for c in $(COMPONENTS); do fleetctl --strict-host-key-checking=false start ../../$$c/systemd/*; done

stop:
for c in $(COMPONENTS); do fleetctl stop ../../$$c/systemd/*; done
for c in $(COMPONENTS); do fleetctl --strict-host-key-checking=false stop ../../$$c/systemd/*; done

restart:
for c in $(COMPONENTS); do fleetctl restart ../../$$c/systemd/*; done
restart: stop start

run: install restart
run: install start

clean: uninstall
$(call ssh_all,'cd share && for c in $(COMPONENTS); do docker rm -f deis-$$c; done')
$(call ssh_all,'for c in $(COMPONENTS); do docker rm -f deis-$$c; done')

full-clean: clean
$(call ssh_all,'cd share && for c in $(COMPONENTS); do docker rmi deis-$$c; done')
$(call ssh_all,'for c in $(COMPONENTS); do docker rmi deis-$$c; done')
2 changes: 2 additions & 0 deletions contrib/vagrant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ On your workstation:
* Configure the fleetctl client to tunnel through one of the VMs:
* `export FLEETCTL_TUNNEL=172.17.8.100`
* (Note that IP addressing for the VMs starts at .100, but you can connect to any VM in the cluster)
* Add your Vagrant-generated SSH key to the ssh-agent (fleetctl tunnel requires the agent to have this key)
* `ssh-add ~/.vagrant.d/insecure_private_key`

## Launching Deis
Follow the normal instructions in the [README](../../README.md) for launching and using Deis, with the caveat that
Expand Down

0 comments on commit 3d1c474

Please sign in to comment.