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:
25
Makefile
Normal file
25
Makefile
Normal 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
|
||||
Reference in New Issue
Block a user