Update README.md with Docker build and Kubernetes debug instructions

- Added instructions for building and pushing Docker images with specific tags.
- Included steps for creating Kubernetes secrets from local .env files.
- Provided guidance on manually creating and removing a debug pod in Kubernetes.
This commit is contained in:
Zsolt Alföldi
2026-05-07 01:20:33 +02:00
parent ecea084003
commit a322af07d0
4 changed files with 126 additions and 0 deletions

25
Makefile Normal file
View File

@@ -0,0 +1,25 @@
IMAGE ?= alfonzso/ncore-hnr
DEBUG_IMAGE ?= alfonzso/ncore-hnr-debug
GIT_SHA := $(shell git rev-parse --short HEAD)
EPOCH := $(shell date +%s)
TAG ?= $(GIT_SHA)-$(EPOCH)
.PHONY: docker-build docker-push docker-publish docker-debug-build docker-debug-push docker-debug-publish
docker-build:
docker build -t $(IMAGE):$(TAG) -t $(IMAGE):latest .
docker-push:
docker push $(IMAGE):$(TAG)
docker push $(IMAGE):latest
docker-publish: docker-build docker-push
docker-debug-build:
docker build -f Dockerfile.debug -t $(DEBUG_IMAGE):$(TAG) -t $(DEBUG_IMAGE):latest .
docker-debug-push:
docker push $(DEBUG_IMAGE):$(TAG)
docker push $(DEBUG_IMAGE):latest
docker-debug-publish: docker-debug-build docker-debug-push