summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-03-19 06:21:30 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-03-19 06:21:30 +0100
commit9d9925ec86bb779c60655bbf487d7921f22a36eb (patch)
treea91c886a7aa65ace740dae91596d99517e1c27d9 /Makefile
parent13c354cf70004f24570b81cc8f291af98ed7380c (diff)
downloadmysql-galera-9d9925ec86bb779c60655bbf487d7921f22a36eb.tar.gz
mysql-galera-9d9925ec86bb779c60655bbf487d7921f22a36eb.tar.bz2
mysql-galera-9d9925ec86bb779c60655bbf487d7921f22a36eb.tar.xz
mysql-galera-9d9925ec86bb779c60655bbf487d7921f22a36eb.zip
Include peer-finder and modify to match also IPs in order to support hostNetwork configuration
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 16 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 336ccd5..7fdb50d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,15 @@
all: build
install: push
-.PHONY: rebuild build push start stop restart bash
+.PHONY: rebuild build push start stop restart bash peer-finder
-build: Dockerfile
+peer-finder:
+ make -C peer-finder
+
+root-galera/usr/bin/peer-finder: peer-finder
+ cp peer-finder/peer-finder root-galera/usr/bin/peer-finder
+
+build: Dockerfile root-galera/usr/bin/peer-finder
docker build --tag chsa/mysql-galera:5.7 .
rebuild: Dockerfile
@@ -12,6 +18,14 @@ rebuild: Dockerfile
push: build
docker push chsa/mysql-galera:5.7
+login:
+ docker login -u `oc whoami` -p `oc whoami -t` docker-registry-default.kaas.kit.edu
+
+kaas: build login
+ docker tag chsa/mysql-galera:5.7 docker-registry-default.kaas.kit.edu/adei/mysql-galera:5.7
+ docker push docker-registry-default.kaas.kit.edu/adei/mysql-galera:5.7
+
+
start: build
if [ `docker ps | grep chsa/mysql-galera | wc -l` -eq 0 ]; then \
if [ `docker ps -a | grep mysql-galera | wc -l` -gt 0 ]; then \