Skip to content

Latest commit

 

History

History
60 lines (37 loc) · 1.07 KB

README.md

File metadata and controls

60 lines (37 loc) · 1.07 KB

Hello World - GoLang Server

Another Change

Prerequisites

Development

Build

docker build -t cruiseh/hello-world-golang-server:latest .

Test

With Docker

docker run -it --rm -p 8888:8888 --name hello-world-server cruiseh/hello-world-golang-server

Navigate to http://localhost:8888

With Kubernetes

After deploying k8s/deployment.yaml & k8s/service.yaml in the hw-go namespace, configure port forwarding to the hello-go service with the command:

kubectl port-forward svc/hello-go -n hw-go 8888:8888

Navigate to http://localhost:8888

Release

Create new release

./release.sh (patch|minor|major)

Publish current release

Builds docker image from current release, tags with latest, version and commit SHA

./publish.sh

Helpful commands

Get current release

bump2version --dry-run --list patch | grep current_version | cut -d '=' -f2