Skip to content

Instantly share code, notes, and snippets.

View l0rd's full-sized avatar
👋

Mario Loriedo l0rd

👋
  • Red Hat
  • Paris, France
View GitHub Profile
@l0rd
l0rd / kubernetes-recipe.yaml
Last active July 9, 2018 16:14
ws.next blog code snippets
---
kind: List
items:
-
apiVersion: v1
kind: Pod
metadata:
name: wsnextdemo
spec:
containers:
@l0rd
l0rd / run.sh
Last active January 12, 2018 15:38
Run Che6 using the minishift addon
#!/bin/bash
# Start minishift
minishift start --memory=4gb --cpus=4 --disk-size=50g --openshift-version=v3.7.0-rc.0 --vm-driver=xhyve
# Clone minishift addon repository
git clone -b che-addon-update git@github.com:l0rd/minishift-addons.git
cd minishift-addons
# Install the addon
@l0rd
l0rd / deploy.sh
Last active July 27, 2017 15:06
Easily run Che on minishift `curl -fsSL http://bit.ly/2v0getche -o get-che.sh && sh get-che.sh`
#!/bin/bash
# ------
# config
# ------
export CHE_LOG_LEVEL="DEBUG"
export CHE_DEBUGGING_ENABLED="false"
export CHE_IMAGE_REPO="rhchestage/che-server"
export CHE_IMAGE_TAG="nightly-fabric8"
@l0rd
l0rd / che-deploy.sh
Created June 15, 2017 16:45
Che deployment script
#!/bin/bash
set -e
DEFAULT_CHE_IMAGE_REPO="docker.io/rhchestage/che-server"
DEFAULT_CHE_IMAGE_TAG="nightly-fabric8"
CHE_IMAGE_REPO=${CHE_IMAGE_REPO:-${DEFAULT_CHE_IMAGE_REPO}}
CHE_IMAGE_TAG=${CHE_IMAGE_TAG:-${DEFAULT_CHE_IMAGE_TAG}}
# minishift is running
@l0rd
l0rd / README.md
Last active May 3, 2017 18:45
CI improvements for RH Che

Currently our Che CI consists of

One ci.centos.org jenkins job that:

  1. Builds Che
  2. Publishes che-server on Docker registries (dockerhub and registry.devshift.net/che/che)
  3. Deploys Che to dev.rdu2c.fabric8.io and [che.ci.centos.org] (https://che.ci.centos.org:8443)

One fabric8.io jenkins job that is triggered by step 2 of ci.centos.org job. This job is responsible for the release of a new version of Che available for openshift.io.

@l0rd
l0rd / che-openshift.md
Last active April 17, 2017 21:02
Instructions to run Che on OpenShift

Keybase proof

I hereby claim:

  • I am l0rd on github.
  • I am l0rd (https://keybase.io/l0rd) on keybase.
  • I have a public key ASCmX9b7ub2lOqse5L-OjE0T7MbzKCE_OQDymYUXCFSpGwo

To claim this, I am signing this object:

@l0rd
l0rd / che-template.json
Last active October 10, 2016 15:31
OpenShift template to deploy Che
{
"kind": "Template",
"apiVersion": "v1",
"metadata": {
"annotations": {
"description": "Application template for Eclipse Che",
"iconClass" : "icon-che",
"tags" : "eclipse,che,java,angular,ide",
"version" : "4.6.0"
},
@l0rd
l0rd / demo_swarm.md
Last active January 22, 2017 01:16
Demo swarm

Requirements: Docker 1.12, Docker machine and Virtualbox

# create 3 nodes for our swarm cluster (one master and 2 slaves)
docker-machine create -d virtualbox swmaster
docker-machine create -d virtualbox swnode1
docker-machine create -d virtualbox swnode2

# swarm init
docker $(docker-machine config swmaster) swarm init --advertise-addr $(docker-machine ip swmaster)
@l0rd
l0rd / breizhcamp.md
Last active March 24, 2016 12:57
5 conteneurs pour 5 langages

Docker pour développeurs : 5 conteneurs pour 5 langages

Un lab sur 5 langages de programmation et 5 façons différentes d'utiliser Docker.

5 langages + 1

Description

De Rust à Go, de Haskell à Swift, en passant par ArnoldC sans oublier la jshell de la JDK9. Nous ferons le tour de ces cinq langages, à mi-chemin entre le sérieux et l'humour, tout en réalisant le plus simple des kata : fizzbuzz.