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
1. We dont patch upstream to integrate with Atomic App.
2. We need to provide an integrated user experience.
3. Lets have a common understanding of what states an Atomic App has.
4. Figure out how we map the states and their transitions to user actions.
5. Figure out what user actions/verbs we want to expose to the user/deployer.

Nulecule Lifecycle Definition

install - will install all required artifacts into a working changes. it will not alter the configuration [of OpenShift or Kubernetes] via a provider. a deployment guy will be able to configure the deployment process, which will be started by run.

run - will deploy artifacts and their configuration via the provider onto the platform. configuration will become effectice and the application will be available to users.

{
"kind":"Template",
"metadata": {
"name": "docker-registry-template",
"annotations": {
"description": "Template for launching a docker-registry pod"
}
},
"parameters": [
{
{
"apiVersion": "v1beta1",
"items": [
{
"apiVersion": "v1beta1",
"containerPort": 8080,
"id": "frontend",
"kind": "Service",
"port": 5432,
"selector": {
@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
@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 / 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.
# 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
{
"name": "Wordpress-App",
"version": "0.0.1",
"graph": [
"mariadb",
"wordpress"
],
"save_answers": true
}
@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