Skip to content

Instantly share code, notes, and snippets.

View VireshDoshi's full-sized avatar
💭
working

Viresh Doshi VireshDoshi

💭
working
  • London
View GitHub Profile
@VireshDoshi
VireshDoshi / grafana.ini.tmpl
Last active June 5, 2018 12:25
grafana consul-template
##################### Grafana Configuration Example #####################
#
# Everything has defaults so you only need to uncomment things you want to
# change
# possible values : production, development
;app_mode = production
# instance name, defaults to HOSTNAME environment variable value or hostname if HOSTNAME var is empty
instance_name = {{ keyOrDefault "grafana/hostname" "${HOSTNAME}" }}
@VireshDoshi
VireshDoshi / concourse.md
Created May 16, 2018 16:51 — forked from kevin-smets/concourse.md
Setup the Concourse binary locally on macOS and run the hello world example.

Prerequisites

Installs

Concourse

curl -Lo concourse https://github.com/concourse/concourse/releases/download/v2.5.0/concourse_darwin_amd64 && chmod +x concourse && mv concourse /usr/local/bin
@VireshDoshi
VireshDoshi / Dockerfile
Last active April 11, 2018 07:59
ansible playbook to get values from vault
FROM alpine:latest
RUN apk add --update curl python python-dev py-cffi py-pip openssl-dev build-base && rm -rf /var/cache/apk/*
RUN pip install -U pip setuptools && \
pip install ansible==2.4.3 requests termcolor packaging ansible-modules-hashivault hvac
ADD ansible.cfg /etc/ansible/ansible.cfg
ENV ANSIBLE_LOCAL_TEMP=/tmp
ENV ANSIBLE_FORCE_COLOR=true
@VireshDoshi
VireshDoshi / text
Created March 8, 2018 13:49
error running concourse ci on centos
runc run: exit status 1: container_linux.go:348: starting container process caused "unknown capability \"CAP_AUDIT_READ\""
@VireshDoshi
VireshDoshi / bash.sh
Last active March 8, 2018 14:05
commands to run a concourse pipeline
$ fly -t lite login -c http://localhost:8082
$ fly -t lite set-pipeline -p hello -c hello.yml
$ fly -t lite unpause-pipeline -p hello
$ fly -t lite pipelines
$ fly -t lite tj -j hello/hello-world
@VireshDoshi
VireshDoshi / hello.yml
Created March 8, 2018 09:49
concourse hello world pipeline
jobs:
- name: hello-world
plan:
- task: say-hello
config:
platform: linux
image_resource:
type: docker-image
source: {repository: ubuntu}
run:
@VireshDoshi
VireshDoshi / bash
Created March 7, 2018 14:35
fly install commands
$ wget https://github.com/concourse/concourse/releases/download/v3.9.1/fly_linux_amd64
$ sudo install ./fly_linux_amd64 /usr/local/bin/fly
$ fly --version
(bdd_env1) [vdo023@localhost concourse]$ docker-compose up -d
Creating network "concourse_default" with the default driver
Pulling concourse-db (postgres:9.6)...
9.6: Pulling from library/postgres
4176fe04cefe: Pull complete
b3acc6da98ed: Pull complete
ef28401016a4: Pull complete
f53d3f24be68: Pull complete
faa03ed01c16: Pull complete
2bd2f4dc2cd2: Pull complete
@VireshDoshi
VireshDoshi / docker-compose.yml
Last active March 9, 2018 09:30
concourse ci docker compose file
version: '3'
services:
concourse-db:
image: postgres:9.6
environment:
POSTGRES_DB: concourse
POSTGRES_USER: concourse
POSTGRES_PASSWORD: changeme
PGDATA: /database
@VireshDoshi
VireshDoshi / Jenkinsfile.groovy
Last active February 26, 2018 09:42
Deploy to AWS Jenkinsfile
pipeline {
agent {
docker {
image 'vireshdoshi/jen-build-node-app-aws:latest'
}
}
stages {
stage('pre-setup') {
steps {
sh 'echo "setup actions go here"'