-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathmakefile
More file actions
31 lines (24 loc) · 801 Bytes
/
makefile
File metadata and controls
31 lines (24 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
MAKEFLAGS += --warn-undefined-variables
SHELL := /bin/bash
.SHELLFLAGS := -eu -o pipefail
.DEFAULT_GOAL := build
.PHONY: *
export COMPOSE_PROJECT_NAME := es
export COMPOSE_FILE := local-compose.yml
# ----------------------------------------------
# building for local testing and development. When deploying on production
# environments like Triton, `docker-compose up -d` is sufficient
build:
docker-compose build
# send the demonstration container up to the Docker Hub
ship:
docker tag -f es_elasticsearch autopilotpattern/elasticsearch
docker push autopilotpattern/elasticsearch
# ----------------------------------------------
# for testing against local Docker Engine
clean:
docker-compose stop || true
docker-compose rm -f || true
test: clean build
docker-compose up -d
docker ps