Skip to content

Commit

Permalink
clean up health
Browse files Browse the repository at this point in the history
  • Loading branch information
basejump committed Jul 22, 2022
1 parent 05f1d26 commit aacb09b
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 14 deletions.
13 changes: 8 additions & 5 deletions makefiles/Shipkit-main.make
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,14 @@ help: | _program_awk
# word list gets all the makefiles that were included
# if target_regex is set then help.awk will pick it up and filter targets based on that.
awk -v target_regex=$(HELP_REGEX) -f $(HELP_AWK) $(wordlist 2,$(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) $(_HELP_F)
printf "\n$(culine)Common Variables Options:\n$(creset)"
printf "$(ccyanB) VERBOSE=true $(creset)| show logit.debug in build/make/shikit.log and shows target output on console \n"
printf "$(ccyanB) dry_run=true $(creset)| setting this to true will stop certain deployment commands from pushing, such as kubectl and docker \n"
printf "$(ccyanB) env=<file.env> or <file.sh> $(creset)| loads custom variables in from .env file or source 'imports' a custom bash .sh script \n"
printf "\n"
if [[ ! "$${HELP_REGEX:-}" ]]; then
printf "\n$(culine)Common Variables Options:\n$(creset)"
printf "$(ccyanB) help.* or *.help $(creset)| most target prefixes can list help with either git.help or help.git for ex\n"
printf "$(ccyanB) VERBOSE=true $(creset)| show logit.debug in build/make/shikit.log and shows target output on console \n"
printf "$(ccyanB) dry_run=true $(creset)| setting this to true will stop certain deployment commands from pushing, such as kubectl and docker \n"
printf "$(ccyanB) env=<file.env> or <file.sh> $(creset)| loads custom variables in from .env file or source 'imports' a custom bash .sh script \n"
printf "\n"
fi
.PHONY: help

## list all the availible Make targets, including the targets hidden from core help
Expand Down
14 changes: 10 additions & 4 deletions makefiles/docker-db.make
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ docker_tools := $(SHIPKIT_BIN)/docker_tools

#----- DB targets -------

## starts the DOCK_DB_BUILD_NAME db if its not started yet
## Database, list help for db.* targets
help.db:
$(MAKE) help HELP_REGEX="^db.*"

db.help: help.db

# starts the DOCK_DB_BUILD_NAME db if its not started yet
db.start: db.create-network
# ACCEPT_EULA is for sql server, just an env var so won't matter that its set for others
$(docker_tools) start "$(DOCK_DB_BUILD_NAME)" -d \
Expand All @@ -18,7 +24,7 @@ db.start: db.create-network
-e "$(PASS_VAR_NAME)"="$(DB_PASSWORD)" \
"$(DB_DOCKER_URL)"

## alias for db.start
# alias for db.start
start.db: db.start

db.create-network:
Expand All @@ -29,14 +35,14 @@ db.wait:
# TODO not working
$(DockerDbExec) $(build.sh) wait_for_$(DBMS) $(DB_HOST) $(DB_PASSWORD)

## stop and remove the docker DOCK_DB_BUILD_NAME
# stop and remove the docker DOCK_DB_BUILD_NAME
db.down:
$(docker_tools) remove $(DOCK_DB_BUILD_NAME)

## restart the db
db.restart: db.down
$(MAKE) $(DBMS) "db.start"

## stop and remove the docker DOCK_DB_BUILD_NAME
# stop and remove the docker DOCK_DB_BUILD_NAME
db.pull: db.down ## pulls latest nine-db from dock9 docker hub
docker pull $(DB_DOCKER_URL)
4 changes: 2 additions & 2 deletions makefiles/git-dev.make
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# helpers for git dev
# -------------

## show help for GIT and GITHUB short cut helpers, alias to help.git
## Git or g.* help
g.help: help.git

## show help for GIT and GITHUB short cut helpers
## Git or g.* help
help.git:
$(MAKE) help HELP_REGEX="^g[\.]+.*"

Expand Down
2 changes: 1 addition & 1 deletion makefiles/gradle-tools.make
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ start.jar: $(APP_JAR)

.PHONY: resolve-dependencies merge-test-results

## show help list for gradle targets
## Gradle - show help list for gradle targets
help.gradle:
$(MAKE) help HELP_REGEX="^gradle.*"

Expand Down
2 changes: 1 addition & 1 deletion makefiles/ship-k8s-pages.make
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PAGES_DEPLOY_TPL ?= $(SHIPKIT_DIR)/k8s/docmark-pages-deploy.tpl.yml
pages.delete-k8s-deployment:
$(kube_tools) ctl delete deployment,ingress --selector="pages=$(PAGES_APP_KEY)" --namespace="$(PAGES_KUBE_NAMESPACE)"

## apply docmark-pages-deploy.tpl kubectl to deploy site to k8s
# apply docmark-pages-deploy.tpl kubectl to deploy site to k8s
pages.deploy-k8s: pages.delete-k8s-deployment
${kube_tools} apply_tpl $(PAGES_DEPLOY_TPL)

Expand Down
2 changes: 1 addition & 1 deletion version.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ publishedVersion=2.0.10
# when this is false will append -SNAPSHOT to version and if on publishable branch will 'publish' to snapshotUrl
# when true IS_RELEASEBALE will be set and will go through full release process cycle to
# automatically bump version and push a v tag to github
release=false
release=true

0 comments on commit aacb09b

Please sign in to comment.