forked from sttts/docker-galera-mariadb-10.0
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
15 lines (10 loc) · 596 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
all: build
.PHONY: build push master node
build:
docker build -t "sttts/galera-mariadb-10.0-xtrabackup:$$(git rev-parse HEAD)" .
push:
docker push "sttts/galera-mariadb-10.0-xtrabackup:$$(git rev-parse HEAD)"
master:
docker run -it -e XTRABACKUP_PASSWORD=geheim -e MYSQL_ROOT_PASSWORD=geheim -p 8080:8080 -p 3306:3306 --name master --rm sttts/galera-mariadb-10.0-xtrabackup:$$(git rev-parse HEAD) master
node:
docker run -it -e XTRABACKUP_PASSWORD=geheim -e MYSQL_ROOT_PASSWORD=geheim -p 8081:8080 --name node --rm sttts/galera-mariadb-10.0-xtrabackup:$$(git rev-parse HEAD) node 1.2.3.4