Skip to content

Instantly share code, notes, and snippets.

View webwurst's full-sized avatar

Tobias Bradtke webwurst

View GitHub Profile
@webwurst
webwurst / docker-calico.md
Last active August 29, 2015 14:26
Project Calico
curl -SOL https://github.com/Metaswitch/calico-docker/releases/download/v0.5.4/calicoctl
chmod +x calicoctl
sudo mv calicoctl /usr/local/bin/

curl -SOL https://experimental.docker.com/builds/Linux/x86_64/docker-latest
chmod +x docker-latest
sudo mv docker-latest /usr/local/bin/
@webwurst
webwurst / gist:f0714d04ac7e86f60b2f
Created October 14, 2015 18:17
first steps with "dynamic haproxy"
docker run --name consul -d -h dev \
-p 172.16.42.61:8300:8300 \
-p 172.16.42.61:8301:8301 \
-p 172.16.42.61:8301:8301/udp \
-p 172.16.42.61:8302:8302 \
-p 172.16.42.61:8302:8302/udp \
-p 172.16.42.61:8400:8400 \
-p 172.16.42.61:8500:8500 \
-p 172.17.42.1:53:53 \
-p 172.17.42.1:53:53/udp \
@webwurst
webwurst / cluster_dind.fish
Created October 28, 2015 21:42
Running a Consul cluster with Docker-in-Docker™
# open a http://fishshell.com/ and enter this:
# start docker daemons
for i in (seq 3)
set name "dind$i"
docker rm -f $name
docker run \
--privileged \
--name $name \
#!/bin/sh
systemctl stop docker.service
rm $(which docker)
rm /var/run/docker.pid
curl -fsSL https://github.com/armhf-docker-library/binaries/releases/download/1.10.1/docker-1.10.1 \
-o /usr/bin/docker
chmod u+x /usr/bin/docker
#
# Ce fichier de configuration Logstash permet d'effectuer la copie d'index soit:
# - à l'intérieur d'un même cluster Elasticsearch
# - entre différents clusters Elasticsearch
#
# Utile dans le cas où nous voulons réindexer un index à l'aide de nouveaux mappings ou pour
# dupliquer la production vers un autre environnement de tests.
#
# Pour invoquer la commande:
# LS_HEAP_SIZE="2048m" /path/to/bin/logstash -w 2 -f copie-elasticsearch.conf
{
"template" : "ul-*",
"order" : 90,
"settings" : {
"index" : {
"refresh_interval" : "-1",
"number_of_replicas" : "0"
}
}
}
@webwurst
webwurst / leaflet-map-panes-example.html
Created April 13, 2016 18:03
Leaflet Map Münster Stadtteile
<!DOCTYPE html>
<html>
<head>
<title>Leaflet Map Panes Example</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://leafletjs-cdn.s3.amazonaws.com/content/leaflet/master/leaflet.css" />
</head>
@webwurst
webwurst / swarm.json
Last active May 12, 2016 17:13 — forked from designhunger/swarm.json
Including pod definition
{
"name": "magebox",
"components": {
"app": {
"pod": "children",
"expose": [
{
"component": "app/nginx",
"target_port": "80",
"port": "80"
### Keybase proof
I hereby claim:
* I am webwurst on github.
* I am webwurst (https://keybase.io/webwurst) on keybase.
* I have a public key whose fingerprint is 67A2 1210 37C2 778A 93E3 1509 EE05 0DCC 3E7E EC71
To claim this, I am signing this object: