forked from Grokzen/docker-redis-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 859 Bytes
/
Makefile
File metadata and controls
30 lines (23 loc) · 859 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
help:
@echo "Please use 'make <target>' where <target> is one of"
@echo " build builds docker-compose containers"
@echo " up starts docker-compose containers"
@echo " down stops the running docker-compose containers"
@echo " rebuild rebuilds the image from scratch without using any cached layers"
@echo " test runs external connectivity test with port remapping"
@echo " bash starts bash inside a running container."
@echo " cli run redis-cli inside the container on the server with port 7000"
build:
docker-compose build
up:
docker-compose up
down:
docker-compose stop
rebuild:
docker-compose build --no-cache
test:
./test-external-connectivity.sh
bash:
docker-compose exec redis-cluster /bin/bash
cli:
docker-compose exec redis-cluster /redis/src/redis-cli -p 7000