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 #4287 from laurrentt/disable-make-store-if-stateless
Browse files Browse the repository at this point in the history
feat(Makefile): option to disable store components
  • Loading branch information
krancour committed Aug 18, 2015
2 parents 034709b + 374a608 commit bbf5766
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -10,8 +10,8 @@ repo_path = github.com/deis/deis
GO_PACKAGES = version
GO_PACKAGES_REPO_PATH = $(addprefix $(repo_path)/,$(GO_PACKAGES))

COMPONENTS=builder cache controller database logger logspout publisher registry router store
START_ORDER=publisher store logger logspout database cache registry controller builder router
COMPONENTS=builder cache controller database logger logspout publisher registry router $(STORE_IF_STATEFUL)
START_ORDER=publisher $(STORE_IF_STATEFUL) logger logspout database cache registry controller builder router
CLIENTS=client client-go deisctl

all: build run
Expand Down
6 changes: 6 additions & 0 deletions docs/contributing/hacking.rst
Expand Up @@ -382,6 +382,12 @@ You can also use the same tasks on the root ``Makefile`` to operate on all
components at once. For example, ``make deploy`` will build, dev-release,
and restart all components on the cluster.

.. note::

You can export the ``DEIS_STATELESS=True`` environment variable to skip all
store components when using the root ``Makefile``. Useful when working
on a stateless platform (:ref:`running-deis-without-ceph`).

.. important::

In order to cut a dev-release, you must commit changes using ``git`` to increment
Expand Down
4 changes: 4 additions & 0 deletions includes.mk
Expand Up @@ -27,6 +27,10 @@ ifndef DEIS_NUM_INSTANCES
DEIS_NUM_INSTANCES = 3
endif

ifneq ($(DEIS_STATELESS), True)
STORE_IF_STATEFUL = store
endif

define echo_cyan
@echo "\033[0;36m$(subst ",,$(1))\033[0m"
endef
Expand Down

0 comments on commit bbf5766

Please sign in to comment.