Skip to content

Instantly share code, notes, and snippets.

View satishgadhave's full-sized avatar

Satish satishgadhave

  • Pebstone Infotech Pvt Ltd
  • Mumbai, India
View GitHub Profile
@satishgadhave
satishgadhave / elasticsearch_statefulset.yaml
Created September 8, 2020 11:10
Elasticsearch Statefulset for EFK stack
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: es-cluster
namespace: kube-logging
spec:
serviceName: elasticsearch
replicas: 3
selector:
matchLabels:
@satishgadhave
satishgadhave / newrelic-php-docker-compose.yml
Created August 9, 2020 17:16
Newrelic integration with dockerized PHP application
version: '3'
services:
php:
build:
context: .
args:
- NEW_RELIC_AGENT_VERSION: "9.12.0.268"
- NEW_RELIC_LICENSE_KEY: ${NEW_RELIC_LICENSE_KEY}
- NEW_RELIC_APPNAME: "My application - Production"
@satishgadhave
satishgadhave / newrelic_php_apm_agent.Dockerfile
Last active November 2, 2021 06:14
NewRelic PHP APM Agent Dockerfile instructions
FROM php:7.4.5-fpm
ARG NEW_RELIC_AGENT_VERSION
ARG NEW_RELIC_LICENSE_KEY
ARG NEW_RELIC_APPNAME
ARG NEW_RELIC_DAEMON_ADDRESS
# Download and install NewRelic PHP extension. This generates newrelic.ini file at /usr/local/etc/php/conf.d/newrelic.ini
RUN curl -L "https://download.newrelic.com/php_agent/archive/${NEW_RELIC_AGENT_VERSION}/newrelic-php5-${NEW_RELIC_AGENT_VERSION}-linux.tar.gz" | tar -C /tmp -zx \
&& export NR_INSTALL_USE_CP_NOT_LN=1 \
@satishgadhave
satishgadhave / sample_price_feed_processing_pipeline.groovy
Created September 12, 2018 17:54
This a test groovy code to create Jenkins pipeline
pipeline {
agent any
triggers {
cron('5 0 * * *')
}
stages {
stage('Process Price Feed') {
steps {
timeout(time: 10, unit: 'MINUTES') {
retry(3) {