-
Notifications
You must be signed in to change notification settings - Fork 34
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
Showing
2 changed files
with
41 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,39 @@ | ||
VERSION ?= v4.3.10 | ||
|
||
.PHONY: help | ||
help: ## Help for usage | ||
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | ||
all: docker | ||
|
||
docker: | ||
build-minideb: ## Build Wazuh Agent minideb based | ||
docker build -t kennyopennix/wazuh-agent:latest . && \ | ||
docker build -t kennyopennix/wazuh-agent:$(VERSION) . | ||
docker tag kennyopennix/wazuh-agent:latest kennyopennix/wazuh-agent:$(VERSION) | ||
|
||
build-amazon-linux: ## Build Wazuh Agent amazon linux based | ||
docker build -f ./images/Dockerfie.amazonlinux -t kennyopennix/wazuh-agent-amazonlinux:latest . && \ | ||
docker tag kennyopennix/wazuh-agent-amazonlinux:latest kennyopennix/wazuh-agent-amazonlinux:$(VERSION) | ||
|
||
build-ubuntu: ## Build Wazuh Agent ubuntu linux based | ||
docker build -f ./images/Dockerfie.ubuntu -t kennyopennix/wazuh-agent-ubuntu:latest . && \ | ||
docker tag kennyopennix/wazuh-agent-ubuntu:latest kennyopennix/wazuh-agent-ubuntu:$(VERSION) | ||
|
||
docker-run: | ||
docker-run: ## Run Wazuh Agent docker image minideb based | ||
docker run kennyopennix/wazuh-agent:$(VERSION) | ||
|
||
docker-push: | ||
docker-push-minideb: ## Push Wazuh Agent docker image minideb based | ||
docker push kennyopennix/wazuh-agent:latest && \ | ||
docker push kennyopennix/wazuh-agent:$(VERSION) | ||
|
||
docker-push-amazon-linux: ## Push Wazuh Agent docker image amazon linux based | ||
docker push kennyopennix/wazuh-agent-amazonlinux:latest && \ | ||
docker push kennyopennix/wazuh-agent-amazonlinux:$(VERSION) | ||
|
||
docker-push-ubuntu: ## Push Wazuh Agent docker image ubuntu linux based | ||
docker push kennyopennix/wazuh-agent-ubuntu:latest && \ | ||
docker push kennyopennix/wazuh-agent-ubuntu:$(VERSION) | ||
|
||
docker-buildx: | ||
docker buildx build --push -t kennyopennix/wazuh-agent:$(VERSION) --cache-to type=local,dest=./tmp/ --cache-from type=local,src=./tmp/ . | ||
|
||
run-local: | ||
run-local: ## Run docker compose stack with all agents on board | ||
docker compose -f tests/single-node/generate-indexer-certs.yml run --rm generator | ||
docker compose -f docker-compose.yml up -d --build |
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