Skip to content

Instantly share code, notes, and snippets.

View goern's full-sized avatar
🥥
working on getting Data Science done...

Christoph Görn goern

🥥
working on getting Data Science done...
View GitHub Profile

Timagap

so why did it take me a year to figure out that asciidoc is supported by github?!

@goern
goern / gist:acfb9bac168b6eec44eb
Created March 3, 2015 11:31
Oh-My-Vagrant configuration to deplo OpenShift Enterprise 3
---
:domain: goern.example.com
:network: 192.168.196.0/24
:image: rhel-7.1
:boxurlprefix: ''
:sync: rsync
:folder: ''
:extern:
- type: git
system: ansible
{
"name": "Wordpress-App",
"version": "0.0.1",
"graph": [
"mariadb",
"wordpress"
],
"save_answers": true
}
# This a a parameters file for an Application
[general]
registry = docker-registry.usersys.redhat.com
foo = bar
[wordpress]
title = Team7
foo = baz
public_ip = None # None means required
@goern
goern / mongodb-app-ibuildit
Last active August 29, 2015 14:18
build an atomicapp for mongodo
# prerequisites
echo -e "[epel]\nname=epel\nenabled=1\nbaseurl=https://dl.fedoraproject.org/pub/epel/7/x86_64/\ngpgcheck=0" > /etc/yum.repos.d/epel.repo
pip install yapsy
# clone the repo...
git clone https://github.com/goern/atomicapp-run.git
# and start developing the Atomicapp
./containerapp.py create "awesome mongoDB cluster"
vi Atomicfile # add storage requirement.
@goern
goern / atomicapp-storage.yaml
Last active August 29, 2015 14:18
How to request persistant storage for my Atomicapp?
---
# seeAlso https://docs.google.com/a/redhat.com/presentation/d/13QhvPAlrbDRYvVeY-7bUU0_GAuW0OSPSwZynRsCVGyQ/edit#slide=id.g2e21d8019_0140
persistantVolume:
name: myvol1
accessMode: ReadWrite # or ReadOnly
size: 4 # GB by default
@goern
goern / atomicapp-provider-openshift-storage
Last active August 29, 2015 14:18
How to claim/request (have a requiremet for) storage on OSE3?
kind: PersistentVolumeClaim
apiVersion: v1beta3
metadata:
name: myvol1-claim-1
spec:
accessModes:
- ReadWriteOnce
resources:
size: 3
{
"apiVersion": "v1beta1",
"items": [
{
"apiVersion": "v1beta1",
"containerPort": 8080,
"id": "frontend",
"kind": "Service",
"port": 5432,
"selector": {
{
"kind":"Template",
"metadata": {
"name": "docker-registry-template",
"annotations": {
"description": "Template for launching a docker-registry pod"
}
},
"parameters": [
{
@goern
goern / gist:664009
Created November 5, 2010 11:33
BG EBS
[root@localhost ~]# gem list
*** LOCAL GEMS ***
amazon-ec2 (0.9.15)
boxgrinder-build (0.6.2)
boxgrinder-build-fedora-os-plugin (0.0.4)
boxgrinder-build-rpm-based-os-plugin (0.0.6)
boxgrinder-core (0.1.1)
commander (4.0.3)