Golang App Deployment With Vagrant

Golang App Deployment With Vagrant

Golang App Deployment With Vagrant

Project Link

https://github.com/susimsek/golang-echo-graphql-example

Prerequisites for Docker-Compose Deployment

  • Docker 19.03+
  • Docker Compose 1.25+

Installation for Docker-Compose Deployment

docker-compose up -d 

Prerequisites for Kubernetes Deployment

  • Kubernetes 1.12+
  • Helm 3.1.0
  • PV provisioner support in the underlying infrastructure

Installation for Kubernetes Deployment

helm install app helm-chart/app

Installation Using Vagrant for Docker-Compose Deployment

Golang Vagrant Docker Compose Installation

Prerequisites for Docker-Compose Deployment

  • Vagrant 2.2+
  • Virtualbox or Hyperv
vagrant up
vagrant ssh
cd vagrant/docker-compose-setup
sudo chmod u+x *.sh
./install-prereqs.sh
exit
vagrant ssh
docker-compose up -d

You can access the Playground from the following url.

http://192.168.12.11:9000/playground

Installation Using Vagrant for Kubernetes Deployment

Golang Vagrant Kubernetes Installation

Prerequisites for Kubernetes Deployment

  • Vagrant 2.2+
  • Virtualbox or Hyperv
vagrant up
vagrant ssh
cd vagrant/kubernetes-setup
sudo chmod u+x *.sh
./install-prereqs.sh
exit
vagrant ssh
helm install app helm-chart/app

You can access the Playground from the following url.

http://app.info/playground

Golang App Used Technologies

  • Golang 1.16.3
  • Echo
  • Query & Mutation & Subscription Example
  • Gqlgen
  • Gqlparser
  • Go Uuid
  • Air