This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | deploy: | |
| docker: (1) | |
| - image: circleci/golang:1.10 | |
| steps: (2) | |
| - checkout | |
| - run: (3) | |
| name: Install AWS cli | |
| command: export TZ=Europe/Minsk && sudo ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > sudo /etc/timezone && sudo apt-get update && sudo apt-get install -y awscli | |
| - run: (4) | |
| name: Set the tag for the image, we will concatenate the app verson and circle build number with a `-` char in between | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | build&pushImage: | |
| working_directory: /go/src/hello-app (1) | |
| docker: | |
| - image: circleci/golang:1.10 (2) | |
| steps: | |
| - checkout (3) | |
| - run: (4) | |
| name: build the binary | |
| command: go build -o hello-app | |
| - setup_remote_docker: (5) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | version: 1.0.0 | |
| appVersion: 0.0.1 | |
| name: helloapp | |
| description: Helm chart for helloapp | |
| source: | |
| - https://github.com/akash-gautam/helloapp | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | image: | |
| tag: 0.0.1 | |
| repository: 123456789870.dkr.ecr.us-east-1.amazonaws.com/helloapp | |
| imagePullPolicy: Always | |
| labels: | |
| env: "staging" | |
| cluster: "eks-cluster-blog" | |
| service: | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: helloapp | |
| spec: | |
| type: {{ .Values.service.type }} | |
| ports: | |
| - name: helloapp | |
| port: {{ .Values.service.port }} | |
| protocol: TCP | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | apiVersion: apps/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: helloapp | |
| spec: | |
| replicas: 1 | |
| strategy: | |
| type: RollingUpdate | |
| rollingUpdate: | |
| maxSurge: 1 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package main | |
| import ( | |
| "encoding/json" | |
| "net/http" | |
| "log" | |
| "github.com/gorilla/mux" | |
| ) | |
| type Message struct { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package main | |
| import ( | |
| "time" | |
| "velotio.com/consumer" | |
| "velotio.com/producer" | |
| "velotio.com/publisher" | |
| ) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package dao | |
| import ( | |
| "bytes" | |
| "crypto/tls" | |
| "encoding/json" | |
| "fmt" | |
| "net/http" | |
| ) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | package consumer | |
| import ( | |
| "config" | |
| "fmt" | |
| "github.com/aws/aws-sdk-go/service/kinesis" | |
| "velotio.com/dao" | |
| ) |