mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-27 19:35:32 +00:00
kata-debug is a tool that is used as part of the Kata Containers CI to gather information from the node, in order to help debugging issues with Kata Containers. As one can imagine, this can be expanded and used outside of the CI context, and any contribution back to the script is very much welcome. The resulting container is stored at the [Kata Containers quay.io space](https://quay.io/repository/kata-containers/kata-debug) and can be used as shown below: ```sh kubectl debug $NODE_NAME -it --image=quay.io/kata-containers/kata-debug:latest ``` Fixes: #7397 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
61 lines
1.2 KiB
Makefile
61 lines
1.2 KiB
Makefile
# Copyright (c) 2020 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
# List of available components
|
|
COMPONENTS =
|
|
|
|
COMPONENTS += libs
|
|
COMPONENTS += agent
|
|
COMPONENTS += dragonball
|
|
COMPONENTS += runtime
|
|
COMPONENTS += runtime-rs
|
|
|
|
# List of available tools
|
|
TOOLS =
|
|
|
|
TOOLS += agent-ctl
|
|
TOOLS += kata-ctl
|
|
TOOLS += log-parser
|
|
TOOLS += log-parser-rs
|
|
TOOLS += runk
|
|
TOOLS += trace-forwarder
|
|
|
|
STANDARD_TARGETS = build check clean install static-checks-build test vendor
|
|
|
|
# Variables for the build-and-publish-kata-debug target
|
|
KATA_DEBUG_REGISTRY ?= ""
|
|
KATA_DEBUG_TAG ?= ""
|
|
|
|
default: all
|
|
|
|
include utils.mk
|
|
include ./tools/packaging/kata-deploy/local-build/Makefile
|
|
|
|
# Create the rules
|
|
$(eval $(call create_all_rules,$(COMPONENTS),$(TOOLS),$(STANDARD_TARGETS)))
|
|
|
|
# Non-standard rules
|
|
|
|
generate-protocols:
|
|
make -C src/agent generate-protocols
|
|
|
|
# Some static checks rely on generated source files of components.
|
|
static-checks: static-checks-build
|
|
bash ci/static-checks.sh
|
|
|
|
docs-url-alive-check:
|
|
bash ci/docs-url-alive-check.sh
|
|
|
|
build-and-publish-kata-debug:
|
|
bash tools/packaging/kata-debug/kata-debug-build-and-upload-payload.sh ${KATA_DEBUG_REGISTRY} ${KATA_DEBUG_TAG}
|
|
|
|
.PHONY: \
|
|
all \
|
|
kata-tarball \
|
|
install-tarball \
|
|
default \
|
|
static-checks \
|
|
docs-url-alive-check
|