mintojoseph / mweb

Mock web service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mweb

Mock HTTP service.

Requirements

  • Go
  • Docker
  • kubectl
  • helm
  • terraform
  • Jenkins with following plugins- Docker Pipeline, Terraform, Kubernetes CLI. github need to be configured as 'scm'. Dockerhub credentials need to be configured as 'docker-hub-credentials'.
  • minikube

Available parameters

./mweb --help
Usage of ./mweb:
  -port string
        HTTP port. HTTPPORT environment variable can also be used. (default "8080")

Port can be set using HTTPPORT environment variable as well. Parameter takes precedence.

Example

Run the application.

./mweb -port 8083

Docker Build

sudo docker build  -t  mintojoseph/mweb:1.0 .
sudo docker container run -p 8080:8080 mintojoseph/mweb:1.0

Directories and files

  • deployment/k8s/ - Kuberenetes yaml files for mweb application. Jenkins file is included.
  • deployment/terraform/ - Terraform code for deploying mweb application using helm. charts.
  • deployment/mweb-helm/ - helm charts for mweb application.
  • deployment/logging/ - Terraform code for deploying loki and grafana for monitoring using helm charts. Jenkins file is included.
  • internal/ - Main program and test.
  • Jenkinsfile - To build and deploy using helm charts.
  • Dockerfile - To build images.
  • Makefile - To build program.

About

Mock web service

License:MIT License


Languages

Language:Go 66.1%Language:Smarty 19.4%Language:HCL 9.6%Language:Dockerfile 2.6%Language:Makefile 2.3%