Skip to content

Instantly share code, notes, and snippets.

View webwurst's full-sized avatar

Tobias Bradtke webwurst

View GitHub Profile
@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"
{
"template" : "ul-*",
"order" : 90,
"settings" : {
"index" : {
"refresh_interval" : "-1",
"number_of_replicas" : "0"
}
}
}
#
# 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
@webwurst
webwurst / Dockerfile
Last active January 11, 2018 17:05 — forked from henrik-muehe/Dockerfile
# Fake a fuse install
# from https://gist.github.com/henrik-muehe/6155333/e35981031bad80ada4cbf1e4a48ba7f86a019db4
# see https://github.com/dotcloud/docker/issues/2191
run apt-get install libfuse2
run cd /tmp &&\
apt-get download fuse &&\
dpkg-deb -x fuse_* . &&\
dpkg-deb -e fuse_* &&\
rm fuse_*.deb &&\
echo -en '#!/bin/bash\nexit 0\n' > DEBIAN/postinst &&\