Skip to content

Instantly share code, notes, and snippets.

View luebken's full-sized avatar

Matthias Lübken luebken

View GitHub Profile
@luebken
luebken / getting-started-with-atomic-host.md
Last active March 23, 2016 21:12
Getting Started With Atomic Host

There is this project out there projectatomic.io which provides a platform for running containers. And is an important part of the RHEL container story. Project atomic consists actually of several technologies this document looks at atomic host.

Atomic Host

Atomic Host is a lightweight, immutable platform, designed with the sole purpose of running containerized applications.

Currently Fedora, RHEL and CentOS offer an atomic host base release. The main technology atomic host build upon is OSTree.

OSTree

OSTree builds fully assembled, versioned filesystem trees that hold what would have gone into a set of package (e.g. RPM) files. All of the binaries, libraries, documentation files, and so on are gathered together into the OSTree repository and can be retrieved using the ostree command.

Fresh Mac install

Homebrew

$ echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile
$ brew tap caskroom/cask
$ brew tap caskroom/versions
@luebken
luebken / test.md
Last active March 1, 2016 09:41
test

heading

this is a simple test this is a simple test

some //: # (TODO include cluster aware images once a post is up)

@luebken
luebken / kubectl-cs.md
Last active August 10, 2023 09:38
Kubectl Cheatsheet
# start up a cluster
KUBERNETES_PROVIDER=vagrant ./cluster/kube-up.sh

# start a simple vagrant cluster
NUM_NODES=1 KUBERNETES_PROVIDER=vagrant KUBE_ENABLE_CLUSTER_MONITORING=none KUBE_ENABLE_CLUSTER_UI=false ./cluster/kube-up.sh

# validate cluster 
./cluster/validate-cluster.sh
kubectl cluster-info
@luebken
luebken / docker-intro-script.md
Created June 2, 2015 09:28
Docker Intro Script

Prepartion:

docker pull docker pull giantswarm/helloworld
docker pull busybox:ubuntu-14.04
docker pull busybox
docker pull ghost
git clone https://github.com/giantswarm/giantswarm-firstapp-nodejs && make
git clone https://github.com/giantswarm/helloworld
@luebken
luebken / javaimages
Last active August 29, 2015 14:19
Java Docker image comparison.
Sizes of the different Java images for comparison. Pulled 16. April 2015.
JDK6: 419.1 MB
JRE6: 194.5 MB
JDK7: 584.9 MB
JRE7: 332.3 MB
JDK8: 815.5 MB
JRE8: 479.3 MB
{
"app_name": "currentweather",
"services": [
{
"service_name": "currentweather-service",
"components": [
{
"component_name": "webserver",
"image": "registry.giantswarm.io/$username/currentweather:latest",
"ports": ["8080/tcp"],
@luebken
luebken / Hello.java
Created November 6, 2014 20:19
SparkExample - Hello.java
package sparkexample;
import static spark.Spark.get;
public class Hello {
public static void main(String[] args) {
get("/", (req, res) -> {
return "hello from sparkjava.com";
});
@luebken
luebken / pom.xml
Created November 6, 2014 20:17
Sparkexample pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>sparkle</groupId>
<artifactId>sparkle</artifactId>
<version>1.0-SNAPSHOT</version>
@luebken
luebken / Dockerfile
Created November 6, 2014 20:15
Sparkexample Dockerfile
FROM dockerfile/java:oracle-java8
# Install maven
RUN apt-get update
RUN apt-get install -y maven
WORKDIR /code
# Prepare by downloading dependencies
ADD pom.xml /code/pom.xml