Inspired By: grafana/loki#333
- docker-compose.yml
version: "3"
networks:
loki:
| server { | |
| location /mailcatcher { | |
| proxy_pass http://127.0.0.1:1080/; | |
| proxy_http_version 1.1; | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header Connection "upgrade"; | |
| proxy_read_timeout 1d; | |
| sub_filter 'src="/' 'src="/mailcatcher/'; | |
| sub_filter 'href="/' 'href="/mailcatcher/'; | |
| sub_filter 'url(/' 'url(/mailcatcher/'; |
Inspired By: grafana/loki#333
version: "3"
networks:
loki:
| input { | |
| stdin { | |
| codec => multiline { | |
| pattern => "^\[%{MONTHDAY}-%{MONTH}-%{YEAR} %{TIME} %{TZ}\]" | |
| negate => true | |
| what => "previous" | |
| auto_flush_interval => 10 | |
| } | |
| type => "php-error" | |
| } |
| # Custom docker image which exposes 8080 | |
| image: lafayette/hoth:5.5 | |
| services: | |
| - selenium/standalone-chrome:latest | |
| before_script: | |
| # Use 0.0.0.0 instead of localhost to allow external connections | |
| - php -S 0.0.0.0:8080 -t ../ &> /dev/null & |
| -- Tit Petric, Monotek d.o.o., Thu 27 Oct 2016 10:43:38 AM CEST | |
| -- | |
| -- Delete nginx cached assets with a PURGE request against an endpoint | |
| -- | |
| local md5 = require 'md5' | |
| function file_exists(name) | |
| local f = io.open(name, "r") | |
| if f~=nil then io.close(f) return true else return false end |
| FROM ubuntu:16.04 | |
| RUN PACKAGES="\ | |
| php-cli \ | |
| php-mysql \ | |
| php-intl \ | |
| php-xml \ | |
| php-curl \ | |
| php-dom \ | |
| " && \ |
| #... | |
| function gitzip() { | |
| git archive -o $@.zip HEAD | |
| } | |
| #... gitzip ZIPPED_FILE_NAME |
| #!/usr/bin/env bash | |
| URL="http://localhost:15672/cli/rabbitmqadmin" | |
| VHOST="<>" | |
| USER="<>" | |
| PWD="<>" | |
| QUEUE="<>" | |
| FAILED_QUEUE="<>" |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "io/ioutil" | |
| "net" | |
| "os" | |
| "strings" |