Skip to content

Instantly share code, notes, and snippets.

View jmaitrehenry's full-sized avatar
👋

Julien Maitrehenry jmaitrehenry

👋
View GitHub Profile
version: "3"
services:
ghost:
image: ghost:1.19-alpine@sha256:43202bbb638a92e0411aea28605dae4d2714223fd6194190f6ea30dd6a5edd0e
networks:
- webgateway
environment:
server__host: "0.0.0.0"
mail__from: "Julien Maitrehenry <[email protected]>"
mail__transport: "SMTP"
kernel:
image: linuxkit/kernel:4.9.73
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
init:
- linuxkit/init:9250948d0de494df8a811edb3242b4584057cfe4
- linuxkit/runc:abc3f292653e64a2fd488e9675ace19a55ec7023
- linuxkit/containerd:e58a382c33bb509ba3e0e8170dfaa5a100504c5b
- linuxkit/ca-certificates:de21b84d9b055ad9dcecc57965b654a7a24ef8e0
onboot:
- name: sysctl
INFO[3816] Entering go-plugins-helpers unmountPath time=1512670067108
INFO[3816] /csi.Node/NodeUnpublishVolume: REQ 0026: VolumeId=values:<key:"id" value:"test123.vhd" > , VolumeMetadata=values:<key:"name" value:"test123" > values:<key:"type" value:"DataDisk" > , TargetPath=/var/lib/rexray/docker/volumes/test123 host=unix:///var/run/rexray/384768199.sock integrationDriver=linux osDriver=linux service=azureud storageDriver=libstorage time=1512670067108
INFO[3816] azureud_executor: Init host=unix:///var/run/rexray/384768199.sock instanceID=azureud=swarm-unmanaged integrationDriver=linux osDriver=linux server=pear-gem-bm service=azureud storageDriver=libstorage time=1512670067108 txCR=1512670067 txID=646269f7-70b2-4174-69d1-b9f6c742840a
DEBU[3816] local devices devicemap=map[/dev/sdc:0] host=unix:///var/run/rexray/384768199.sock instanceID=azureud=swarm-unmanaged integrationDriver=linux osDriver=linux server=pear-gem-bm service=azureud storageDriver=l
Dec 06 15:18:22 swarm0 rexray[1110]: -------
Dec 06 15:18:22 swarm0 rexray[1110]: Binary: /opt/bin/rexray
Dec 06 15:18:22 swarm0 rexray[1110]: :::::::.. .,:::::: .,:: .::::::::.. :::. .-:. ::-.
Dec 06 15:18:22 swarm0 rexray[1110]: ;;;;'';;;; ;;;;'''' ';;;, .,;; ;;;;'';;;; ;;';; ';;. ;;;;'
Dec 06 15:18:22 swarm0 rexray[1110]: [[[,/[[[' [[cccc '[[,,[[' [[[,/[[[' ,[[ '[[, '[[,[[['
Dec 06 15:18:22 swarm0 rexray[1110]: $$$$$$c $$"""" Y$$$Pcccc $$$$$$c c$$$cc$$$c c$$"
Dec 06 15:18:22 swarm0 rexray[1110]: 888b "88bo,888oo,__ oP"''"Yo, 888b "88bo,888 888,,8P"'
Dec 06 15:18:22 swarm0 rexray[1110]: MMMM "W" """"YUMMM,m" "Mm, MMMM "W" YMM ""'mM"
Dec 06 15:18:22 swarm0 rexray[1110]: REX-Ray
Dec 06 15:18:22 swarm0 rexray[1110]: -------
version: "3.4"
services:
traefik_init:
image: traefik:1.4.3
command:
- "storeconfig"
- "--logLevel=DEBUG"
- "--web"
- "--entrypoints=Name:http Address::80 Redirect.EntryPoint:https"
- "--entrypoints=Name:https Address::443 TLS"
#cloud-config
write_files:
- path: /tmp/startup.sh
permissions: 0755
content: |
#!/bin/bash
sleep 10
export JENKINS_URL='xxx'
export USER='yyy'
export LABELS='{{properties['buildName']}}'
# encoding: utf-8
require "logstash/namespace"
require "logstash/inputs/base"
require "logstash/inputs/threadable"
# This input will read events from a Redis instance; it supports both Redis channels and lists.
# The list command (BLPOP) used by Logstash is supported in Redis v1.3.1+, and
# the channel commands used by Logstash are found in Redis v1.3.8+.
# While you may be able to make these Redis versions work, the best performance
# and stability will be found in more recent stable versions. Versions 2.6.0+
#!/bin/bash
set -o pipefail
if [[ "$1" = /* ]]
then
HAPROXY_SOCKET="$1"
shift 1
else
if [[ "$1" =~ (25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?):[0-9]{1,5} ]];
then
#!/bin/bash
#
# Get list of Frontends and Backends from HAPROXY
# Example: ./haproxy_discovery.sh [/var/run/haproxy/info.sock] FRONTEND|BACKEND|SERVERS
# First argument is optional and should be used to set location of your HAPROXY socket
# Second argument is should be either FRONTEND, BACKEND or SERVERS, will default to FRONTEND if not set
#
# !! Make sure the user running this script has Read/Write permissions to that socket !!
#
## haproxy.cfg snippet
#
# Discovery Rule
#
# HAProxy Frontend, Backend and Server Discovery rules
UserParameter=haproxy.list.discovery[*],/usr/local/bin/haproxy_discovery.sh $1 $2
# cached results
UserParameter=haproxy.stats[*],/usr/local/bin/haproxy_stats.sh $1 $2 $3 $4