samarthya/spinnaker

By samarthya

Updated about 3 years ago

Simple go lang service to utilise for spinnaker deployment

Image
Developer Tools
0

500K+

A simple web application that can be launched using

docker run --env HTTP_PORT=8181 -i -t --rm -p 8181:8181 samarthya/spinnaker:v1.0

Once running you can test using curl

> spinnaker-hellow % curl http://localhost:8181/
Hello, Docker! <3%                                                                                                                                                                                                                            
> spinnaker-hellow % curl http://localhost:8181/ping
{"Status":"OK"}

In the console you can see logs for the requested URL

> spinnaker-hellow % docker run --env HTTP_PORT=8181 -i -t --rm -p 8181:8181 samarthya/spinnaker:v1.0
2022/02/02 14:46:44  initializing the application FN:init 

   ____    __
  / __/___/ /  ___
 / _// __/ _ \/ _ \
/___/\__/_//_/\___/ v4.6.3
High performance, minimalist Go web framework
https://echo.labstack.com
____________________________________O/_______
                                    O\
⇨ http server started on [::]:8181
{"time":"2022-02-02T14:47:00.9313681Z","id":"","remote_ip":"172.17.0.1","host":"localhost:8181","method":"GET","uri":"/","user_agent":"curl/7.77.0","status":200,"error":"","latency":51900,"latency_human":"51.9µs","bytes_in":0,"bytes_out":17}
{"time":"2022-02-02T14:47:04.4012775Z","id":"","remote_ip":"172.17.0.1","host":"localhost:8181","method":"GET","uri":"/ping","user_agent":"curl/7.77.0","status":200,"error":"","latency":123700,"latency_human":"123.7µs","bytes_in":0,"bytes_out":16}

Docker Pull Command

docker pull samarthya/spinnaker