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
@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)
[root@localhost ~]# yum update rubygem-boxgrinder-*
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package rubygem-boxgrinder-core.noarch 0:0.1.3-3.fc15 set to be updated
--> Processing Dependency: rubygem(hashery) for package: rubygem-boxgrinder-core-0.1.3-3.fc15.noarch
--> Finished Dependency Resolution
Error: Package: rubygem-boxgrinder-core-0.1.3-3.fc15.noarch (boxgrinder-nightly)
Requires: rubygem(hashery)
You could try using --skip-broken to work around the problem
@goern
goern / _readme.markdown
Created May 31, 2012 19:04 — forked from karmi/_readme.markdown
AMQP demo in Ruby

AMQP Demo in Ruby

Download the code:

git clone git://gist.github.com/791002.git amqp-demo-ruby
cd amqp-demo-ruby

Install the gems:

Timagap

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

@goern
goern / gist:d21e5f9bee733a4f30c7
Last active October 31, 2017 08:52
Atomic Host demo on Google Compute Engine (GCE)

Overview

Basically four steps:

  1. install SDK and initialize a new project via console
  2. upload and generate a new GCE image for your project
  3. instantiate a new instance on GCE using the image
  4. follow a known path

install SDK and initialize a new project via console

  • Sign up for Google Compute Engine
@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