Sha256: 7ef97fb40627d35c816e2b50c5c2405effd0b4473b27eeee4105f496eba21c1a

Contents?: true

Size: 899 Bytes

Versions: 5

Compression:

Stored size: 899 Bytes

Contents

PROJECT ?= elastic-rails
DOCKER_COMPOSE_FILE ?= docker-compose.services.yml
DOCKER_COMPOSE_ARGS ?= -p $(PROJECT) -f $(DOCKER_COMPOSE_FILE)
SHELL := /bin/bash

run: help

BOLD ?= $(shell tput bold)
NORMAL ?= $(shell tput sgr0)

help:
	@echo Run elasticsearch for development:
	@echo "  ${BOLD}make services-up${NORMAL}"
	@echo ""
	@echo "Reset the environment:"
	@echo "  ${BOLD}make services-destroy${NORMAL}"
	@echo ""

services: services-up

services-ps:
	docker-compose $(DOCKER_COMPOSE_ARGS) ps

services-up:
	docker-compose $(DOCKER_COMPOSE_ARGS) up -d

services-stop:
	docker-compose $(DOCKER_COMPOSE_ARGS) stop

services-destroy:
	docker-compose $(DOCKER_COMPOSE_ARGS) down --volumes

services-logs:
	docker-compose $(DOCKER_COMPOSE_ARGS) logs -f

services-port:
	@set -o pipefail; \
	docker-compose $(DOCKER_COMPOSE_ARGS) port ${SERVICE} ${PORT} 2> /dev/null | cut -d':' -f2 || echo ${PORT}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
elastic-rails-1.0.4 Makefile
elastic-rails-1.0.3 Makefile
elastic-rails-1.0.2 Makefile
elastic-rails-1.0.1 Makefile
elastic-rails-1.0.0 Makefile