-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(makefile,dockerfile,docker-compose): add makefile, support fast…
… up with no build, features todo list add makefile, support fast up with no build, up , down, etc... readme add features todo list, usage manual
- Loading branch information
1 parent
8eae72d
commit 968c16d
Showing
5 changed files
with
134 additions
and
9 deletions.
There are no files selected for viewing
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
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,68 @@ | ||
|
||
compose-file := docker-compose.yml | ||
|
||
ifdef COMPOSE_FILE | ||
compose-file := $(COMPOSE_FILE) | ||
endif | ||
|
||
cmd = docker-compose -f $(compose-file) | ||
|
||
image_tag ?= latest | ||
|
||
|
||
tag := $(tag) | ||
|
||
service := $(word 1,$(MAKECMDGOALS)) | ||
|
||
.PHONY: fastup | ||
fastup: | ||
export TAG=$(image_tag); docker-compose -f docker-compose-for-fastup.yml up -d --build --remove-orphans | ||
|
||
.PHONY: up | ||
up: | ||
$(cmd) up -d --build --remove-orphans | ||
|
||
.PHONY: up-no-build | ||
up-no-build: | ||
$(cmd) up -d --remove-orphans | ||
|
||
.PHONY: up-tag | ||
up-tag: | ||
export TAG=$(tag); $(cmd) up -d --build --remove-orphans | ||
|
||
|
||
.PHONY: down | ||
down: | ||
$(cmd) down | ||
|
||
.PHONY: build | ||
build: | ||
# build latest | ||
$(cmd) build | ||
|
||
git-tag: | ||
git checkout $(tag) | ||
|
||
.PHONY: build-tag | ||
build-tag:git-tag | ||
export TAG=$(tag); $(cmd) build | ||
|
||
.PHONY: config | ||
config: | ||
$(cmd) config | ||
|
||
.PHONY: ps | ||
ps: | ||
$(cmd) ps | ||
|
||
.PHONY: logs | ||
logs: | ||
$(cmd) logs -f fastapi_jmx | ||
|
||
.PHONY: restart | ||
restart: | ||
$(cmd) restart $(service) | ||
|
||
.PHONY: exec | ||
exec: | ||
$(cmd) exec $(service) /bin/bash |
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
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,11 @@ | ||
version: "3" | ||
|
||
services: | ||
fastapi_jmx: | ||
image: rikasai/jmeter-toolkit:${TAG:-latest} | ||
ports: | ||
- "18000:8000" | ||
volumes: | ||
- ./jmx_files:/app/jmx_files | ||
- ./jtl_files:/app/jtl_files | ||
|
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