mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-24 15:24:17 +00:00
Feature/makefile (#11)
* minor fixes * makefile fixes - docker build * minor fix in Makefile Co-authored-by: Alex Haiut <alex@up9.com>
This commit is contained in:
parent
37a169b371
commit
96cb0ec9c1
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,6 +14,7 @@
|
||||
# Dependency directories (remove the comment below to include it)
|
||||
# vendor/
|
||||
.idea/
|
||||
build
|
||||
*.db
|
||||
|
||||
# Build directories
|
||||
|
12
Makefile
12
Makefile
@ -17,7 +17,8 @@ help: ## This help.
|
||||
|
||||
# Variables and lists
|
||||
TS_SUFFIX="$(shell date '+%s')"
|
||||
|
||||
DOCKER_IMG="up9inc/mizu"
|
||||
DOCKER_TAG="latest"
|
||||
|
||||
ui: ## build UI
|
||||
@(cd ui; npm i ; npm run build; )
|
||||
@ -27,6 +28,7 @@ cli: # build CLI
|
||||
@(cd cli; echo "building cli" )
|
||||
|
||||
api: ## build API server
|
||||
@(echo "building API server .." )
|
||||
@(cd api; go build -o build/apiserver main.go)
|
||||
@ls -l api/build
|
||||
|
||||
@ -36,19 +38,21 @@ tap: ## build tap binary
|
||||
|
||||
docker: ## build Docker image
|
||||
@(echo "building docker image" )
|
||||
docker build -t ${DOCKER_IMG}:${DOCKER_TAG} api
|
||||
docker images ${DOCKER_IMG}
|
||||
|
||||
publish: ## build and publish Mizu docker image & CLI
|
||||
@echo "publishing Docker image .. "
|
||||
@echo "publishing CLI .. "
|
||||
|
||||
|
||||
clean: clean-api clean-cli clean-ui clean-docker ## Clean all build artifacts
|
||||
clean: clean-ui clean-api clean-cli clean-docker ## Clean all build artifacts
|
||||
|
||||
clean-ui:
|
||||
@(cd ui; rm -rf build ; echo "ui cleanup done" )
|
||||
@(rm -rf ui/build ; echo "UI cleanup done" )
|
||||
|
||||
clean-api:
|
||||
@(cd api; rm -rf build ; echo "api cleanup done" )
|
||||
@(rm -rf api/build ; echo "api cleanup done" )
|
||||
|
||||
clean-cli:
|
||||
@(echo "CLI cleanup - NOT IMPLEMENTED YET " )
|
||||
|
Loading…
Reference in New Issue
Block a user