-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
GeunSam2
committed
Sep 3, 2020
1 parent
97e6c07
commit a49db9f
Showing
140 changed files
with
22 additions
and
5,699 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
old_versions/Docker+Marathon+AutoReplication/Dockerfile-db1
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
old_versions/Docker+Marathon+AutoReplication/Dockerfile-db2
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
old_versions/Docker+Marathon+AutoReplication/Dockerfile-db3
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
old_versions/Docker+Marathon+AutoReplication/Dockerfile-db4
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
old_versions/Docker+Marathon+AutoReplication/Dockerfile-haproxy1
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
old_versions/Docker+Marathon+AutoReplication/Dockerfile-haproxy2
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
old_versions/Docker+Marathon+AutoReplication/Dockerfile-manager
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.