Skip to content

Golang microservice to use in docker,kubernetes,openshift training.

License

Notifications You must be signed in to change notification settings

jhidalgo3/training-docker-microservice

Repository files navigation

Go microservice to play with ConfigMap and Secret in Kubernetes

By default this microservice load config file env.yaml from directories:

  • "./configs"
  • "$HOME/configs"

And it is using prefix APP_ to overwriting values from enviroment variables.

Example config file:

port: :8080

mongo:
  host: localhost
  port: 27017
  database: test

logger:
  logFile: /tmp/file.log

Docker

Build Docker image

docker build -t jhidalgo3/training-docker-microservice --rm .

Run Docker image

docker run --rm  -ti -p 8080:8080 -e VERSION=1.0 -v $PWD/src/github.com/jhidalgo3/training-docker-microservice/configs:/root/configs jhidalgo3/training-docker-microservice

URLS

API

VUE application

Github repository

https://github.com/jhidalgo3/training-docker-microservice

Author: Jose Maria Hidalgo Garcia MIT License

About

Golang microservice to use in docker,kubernetes,openshift training.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors