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
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
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
#!/bin/bash | |
TAG=$1 | |
echo "start tiller" | |
export KUBECONFIG=$HOME/.kube/kubeconfig | |
helm tiller start-ci | |
export HELM_HOST=127.0.0.1:44134 | |
result=$(eval helm ls | grep helloapp) | |
if [ $? -ne "0" ]; then | |
helm install --timeout 180 --name helloapp --set image.tag=$TAG charts/helloapp | |
else |
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: 2 | |
jobs: | |
build&pushImage: | |
working_directory: /go/src/hello-app | |
docker: | |
- image: circleci/golang:1.10 | |
steps: | |
- checkout | |
- run: |
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
FROM centos/systemd | |
MAINTAINER "Akash Gautam" <[email protected]> | |
COPY hello-app / | |
ENTRYPOINT ["/hello-app"] |
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: v1alpha1 | |
group: velotio.com | |
kind: BookStore | |
chart: /opt/helm/helm-charts/book-store |
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: velotio.com/v1alpha1 | |
kind: BookStore | |
metadata: | |
name: example-bookstore | |
spec: | |
# Default values copied from <project_dir>/helm-charts/book-store/values.yaml | |
# Default values for book-store. | |
# This is a YAML-formatted file. | |
# Declare variables to be passed into your templates. |
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
operator-sdk new bookstore-operator --api-version=velotio.com/v1alpha1 --kind=BookStore --type=helm --helm-chart=book-store | |
--helm-chart-repo=https://akash-gautam.github.io/helmcharts/ |
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
operator-sdk build akash125/bookstore-operator:v0.0.1 |