golang app - running it on docker image.


This is a very simple approach to push your app into a docker image. First you need your Dockerfile which does all the hardwork for you, as shown below :-








Sample code can be found here.

https://github.com/appcoreopc/goRestService


If you want to run on kubernetes, the following yaml describe this deployment. Save this into a file called muxApp.yaml and then run kubectl apply -f deployment.yaml.




This is the service.yaml file by running "kubectl apply -f appservice.yaml"

Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm