Includes code artefacts to launch a simple filestore HTTP server.
- This being a simple demo version, the http server is hardcoded to be exposed on
localhost
and port8080
- clone this repo and make sure that the working directory has main.go.
- run
$./server
on windows and$server
(This is the ready compiled version ) NOTE: To run the server locally in dev mode$go run main.go
or to generate another version of executable run$go build -o <desired_executable_name> main.go
Pre-requisite: Install docker to the instance and start docker
- clone this repo and make sure that the working directory has main.go and the Dockerfile.
- run
$docker build -t go-server .
to build the docker image - run
$docker run -p 8080:8080 go-server
run $kubectl apply -f k8_deployment.yaml