Skip to content

Instantly share code, notes, and snippets.

Dick Davies rasputnik

Block or report user

Report or block rasputnik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pytest-cloudbuild.yaml
steps:
- name: python:3.7-alpine
volumes:
- name: virtualenv
path: /testlibs
args: ['pip', 'install', '-t', '/testlibs', '-r', '/workspace/ci-requirements.txt']
- name: python:3.7-alpine
volumes:
- name: virtualenv
path: /testlibs
View gist:8558364
production:
adapter: mysql2
database: {{DB_NAME}}
host: {{DB_HOST}}
username: {{DB_USER}}
password: {{DB_PASS}}
pool: {{DB_POOL}}
@rasputnik
rasputnik / gist:8548388
Created Jan 21, 2014
overriding an existing resource with class inheritance
View gist:8548388
# modules/atlassian/manifests/gitfix.pp
class atlassian::gitfix inherits git::packages {
Package['git'] { ensure => absent }
}
@rasputnik
rasputnik / gist:8425116
Created Jan 14, 2014
postgresql 9.3 (transient) Dockerfile on centos6.
View gist:8425116
postgresql-9:$ cat Dockerfile
# postgresql 9 on centos 6.5
#
# docker build -t 'your/pg' <thisfile>
#
# then run with:
# docker run -P -d your/pg
# tweakables are the 'ENV' lines further down
# (if they were higher up they'd blow the cache)
@rasputnik
rasputnik / gist:8302058
Created Jan 7, 2014
redis dockerfile (sample)
View gist:8302058
# build image with:
#
# docker build -t 'your/redis' <directory holding this file>
#
# run with:
# docker run -P -name redis1 -d your/redis
FROM base
MAINTAINER Dick Davies <dick@hellooperator.net>
@rasputnik
rasputnik / gist:8275293
Last active Jan 2, 2016
dockerfile to run riemann on openjdk7 , centos6.5
View gist:8275293
# build up an openjdk stack on centos 6 to run riemann rpm
#
# docker build -t 'your/riemann' <thisfile>
#
# then run with:
# docker run -P -d your/riemann
FROM saltstack/centos-6-minimal
MAINTAINER Dick Davies <dick@hellooperator.net>
@rasputnik
rasputnik / gist:8257020
Last active Jan 2, 2016
Dirt simple riemann config to listen on all interfaces (so docker can map ports in).
View gist:8257020
(let [host "0.0.0.0"]
(tcp-server :host host)
(udp-server :host host)
(ws-server :host host))
@rasputnik
rasputnik / gist:7561122
Created Nov 20, 2013
how to build a statsd RPM using FPM.
View gist:7561122
# get required build bits
yum install -y jdk jruby nodejs rpm-build
# setup jruby (add /opt/jruby/bin to your path)
jgem install fpm
# checkout statsd
You can’t perform that action at this time.