Skip to content

Commit

Permalink
renew all code
Browse files Browse the repository at this point in the history
  • Loading branch information
GeunSam2 committed Sep 3, 2020
1 parent 97e6c07 commit a49db9f
Show file tree
Hide file tree
Showing 140 changed files with 22 additions and 5,699 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
SERVICE_N := sampledb
TAG := v1
IMAGE_NAME_BASE := geunsam2/mha-$(SERVICE_N)
MYSQL_PASS := admin123!@#

.PHONY: help build push clean

help:
@printf "$$(grep -hE '^\S+:.*##' $(MAKEFILE_LIST) | sed -e 's/:.*##\s*/:/' -e 's/^\(.\+\):\(.*\)/\\x1b[36m\1\\x1b[m:\2/' | column -c2 -t -s :)\n"

build: ## Builds docker image latest
for count in $$(seq 1 4); do docker build --pull -t $(IMAGE_NAME_BASE):db$${count}$(TAG) -f Dockerfile-db --build-arg SERVICE_N=$(SERVICE_N) --build-arg F_NUM=$${count} . ; done
for count in $$(seq 1 2); do docker build --pull -t $(IMAGE_NAME_BASE):haproxy$${count}$(TAG) -f Dockerfile-haproxy --build-arg SERVICE_N=$(SERVICE_N) --build-arg F_NUM=$${count} .; done
docker build --pull -t $(IMAGE_NAME_BASE):manager$(TAG) -f Dockerfile-manager --build-arg SERVICE_N=$(SERVICE_N) --build-arg MHA_HAPROXY_IMG_1=$(IMAGE_NAME_BASE):haproxy1$(TAG) --build-arg MHA_HAPROXY_IMG_2=$(IMAGE_NAME_BASE):haproxy2$(TAG) .

push: ## Build and Pushes the docker image to hub.docker.com
# Don't --pull here, we don't want any last minute upsteam changes
for count in $$(seq 1 4); do docker push $(IMAGE_NAME_BASE):db$${count}$(TAG); done
for count in $$(seq 1 2); do docker push $(IMAGE_NAME_BASE):haproxy$${count}$(TAG); done
docker push $(IMAGE_NAME_BASE):manager$(TAG)
File renamed without changes.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#MHA + AutoReplication + Docker

# MHA-docker
MHA-docker
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions mysql-mha/README.md

This file was deleted.

57 changes: 0 additions & 57 deletions mysql-mha/conf/sampledb-2/haproxy.json

This file was deleted.

25 changes: 0 additions & 25 deletions mysql-mha/conf/sampledb-2/haproxy1.cfg

This file was deleted.

25 changes: 0 additions & 25 deletions mysql-mha/conf/sampledb-2/haproxy2.cfg

This file was deleted.

1 change: 0 additions & 1 deletion mysql-mha/conf/sampledb-2/key/authorized_keys

This file was deleted.

27 changes: 0 additions & 27 deletions mysql-mha/conf/sampledb-2/key/id_rsa

This file was deleted.

1 change: 0 additions & 1 deletion mysql-mha/conf/sampledb-2/key/id_rsa.pub

This file was deleted.

23 changes: 0 additions & 23 deletions old_versions/Docker+Marathon+AutoReplication/Dockerfile-db1

This file was deleted.

23 changes: 0 additions & 23 deletions old_versions/Docker+Marathon+AutoReplication/Dockerfile-db2

This file was deleted.

23 changes: 0 additions & 23 deletions old_versions/Docker+Marathon+AutoReplication/Dockerfile-db3

This file was deleted.

23 changes: 0 additions & 23 deletions old_versions/Docker+Marathon+AutoReplication/Dockerfile-db4

This file was deleted.

This file was deleted.

This file was deleted.

39 changes: 0 additions & 39 deletions old_versions/Docker+Marathon+AutoReplication/Dockerfile-manager

This file was deleted.

Loading

0 comments on commit a49db9f

Please sign in to comment.