Skip to content

Commit

Permalink
Add --build flag to make shortcuts. 🔧
Browse files Browse the repository at this point in the history
This so that images are always up to date.

Signed-off-by: Sherif Abdel-Naby <[email protected]>
  • Loading branch information
sherifabdlnaby committed Nov 17, 2019
1 parent 2e8c6da commit 82a20c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ setup: ## Generate Elasticsearch SSL Certs and Keystore.
@make keystore

all: ## Start Elk and all its component (ELK, Monitoring, and Tools).
${COMPOSE_PREFIX_CMD} docker-compose ${COMPOSE_ALL_FILES} up -d ${ELK_MAIN_SERVICES}
${COMPOSE_PREFIX_CMD} docker-compose ${COMPOSE_ALL_FILES} up -d --build ${ELK_MAIN_SERVICES}

elk: ## Start ELK.
${COMPOSE_PREFIX_CMD} docker-compose ${COMPOSE_ALL_FILES} up -d ${ELK_SERVICES}
${COMPOSE_PREFIX_CMD} docker-compose ${COMPOSE_ALL_FILES} up -d --build ${ELK_SERVICES}

monitoring: ## Start ELK Prometheus Monitoring.
${COMPOSE_PREFIX_CMD} docker-compose ${COMPOSE_ALL_FILES} up -d ${ELK_MONITORING}
${COMPOSE_PREFIX_CMD} docker-compose ${COMPOSE_ALL_FILES} up -d --build ${ELK_MONITORING}

tools: ## Start ELK Tools (ElastAlert, Curator).
${COMPOSE_PREFIX_CMD} docker-compose ${COMPOSE_ALL_FILES} up -d ${ELK_TOOLS}
${COMPOSE_PREFIX_CMD} docker-compose ${COMPOSE_ALL_FILES} up -d --build ${ELK_TOOLS}

nodes: ## Start Two Extra Elasticsearch Nodes
${COMPOSE_PREFIX_CMD} docker-compose ${COMPOSE_ALL_FILES} up -d ${ELK_NODES}
${COMPOSE_PREFIX_CMD} docker-compose ${COMPOSE_ALL_FILES} up -d --build ${ELK_NODES}

build: ## Build ELK and all its extra components.
${COMPOSE_PREFIX_CMD} docker-compose ${COMPOSE_ALL_FILES} build ${ELK_ALL_SERVICES}
Expand Down

0 comments on commit 82a20c7

Please sign in to comment.