Skip to content

cruisehall/hello-world-golang-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple hello world server, writtin in golang

Resources

Stars

Watchers

Forks

Packages

No packages published