Skip to content

Instantly share code, notes, and snippets.

View luebken's full-sized avatar

Matthias Lübken luebken

View GitHub Profile
@luebken
luebken / dockervolumesmac.md
Last active August 29, 2015 14:02
TL;DR version for using Docker volumes on the Mac
@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
@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 / 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";
});
{
"app_name": "currentweather",
"services": [
{
"service_name": "currentweather-service",
"components": [
{
"component_name": "webserver",
"image": "registry.giantswarm.io/$username/currentweather:latest",
"ports": ["8080/tcp"],
@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
@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 / 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 / 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)

Fresh Mac install

Homebrew

$ echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile
$ brew tap caskroom/cask
$ brew tap caskroom/versions