Skip to content

Instantly share code, notes, and snippets.

View xtreme-sameer-vohra's full-sized avatar

Sameer Vohra xtreme-sameer-vohra

View GitHub Profile
@xtreme-sameer-vohra
xtreme-sameer-vohra / bstress.go
Created March 9, 2020 23:43
baggageclaim stress util
package main
import (
"archive/tar"
"flag"
"os"
"path/filepath"
"sync"
"time"
@xtreme-sameer-vohra
xtreme-sameer-vohra / docker-compose.yml
Last active February 26, 2020 22:11
Concourse Worker ConnectionDrainTimeout Reproducible Steps
version: '3'
services:
db:
image: postgres
ports:
- 6543:5432
environment:
POSTGRES_DB: concourse
POSTGRES_USER: dev
@xtreme-sameer-vohra
xtreme-sameer-vohra / diff.patch
Created January 14, 2020 18:59
Vault Chart Concourse changes git patch
diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl
index 3e79144..f1258eb 100644
--- a/templates/_helpers.tpl
+++ b/templates/_helpers.tpl
@@ -117,8 +117,14 @@ for users looking to use this chart with Consul Helm.
{{- define "vault.args" -}}
{{ if or (eq .mode "standalone") (eq .mode "ha") }}
- |
+ mkdir /vault/postgres
+ cp /vault/userconfig/postgres/* /vault/postgres/
@xtreme-sameer-vohra
xtreme-sameer-vohra / booklit.sh
Last active September 18, 2020 21:22
setbooklit
#!/bin/bash
pushd /tmp
curl -O https://gist.githubusercontent.com/xtreme-sameer-vohra/287ae0856f2eda79e771621e136576b5/raw/7e00582b9967f8def2af1c83073696e7becf904d/booklit.yml
fly -t dev login -c http://localhost:8080 -p test -u test
fly -t dev sp -n -p booklit -c booklit.yml
fly -t dev up -p booklit
@xtreme-sameer-vohra
xtreme-sameer-vohra / refactor.md
Last active December 30, 2019 17:15
Concourse refactor notes

Principles

Nomenclature

  • Artifact Concourse abstraction for binary objects that need to be stored & retrived in order to execute steps, jobs and pipelines. Agnostic of Runtime Storage.
  • ArtifactSource The complementary object associated with an Artifact that stores and retrieves the binary objects needed by Concourse. Implements the streaming functionality. Implemented by each Runtime Storage.

TODOs

Steps defined in exec should not reference volumes

@xtreme-sameer-vohra
xtreme-sameer-vohra / booklit.yml
Last active September 18, 2020 21:21
Concourse Sample Pipeline - Booklit
resources:
- name: booklit
type: git
source: {uri: "https://github.com/vito/booklit"}
jobs:
- name: unit
plan:
- get: booklit
trigger: true
@xtreme-sameer-vohra
xtreme-sameer-vohra / hello.yml
Last active September 25, 2019 17:59
Sample Concourse Pipeline
---
jobs:
- name: job-hello-world
public: true
plan:
- task: hello-world
config:
platform: linux
image_resource:
type: docker-image
@xtreme-sameer-vohra
xtreme-sameer-vohra / dummy.yml
Created June 13, 2017 15:51
Dummy v2 BOSH Manifest
# Manifest compatible with bosh-deployment cloud-config ( https://github.com/cloudfoundry/bosh-deployment/blob/master/warden/cloud-config.yml )
name: dummy
releases:
- name: dummy
url: https://github.com/pivotal-cf-experimental/dummy-boshrelease/releases/download/v2/dummy-2.tgz
version: latest
stemcells: