We will use minimalistic Linux distribution called Alpine (5MB)
FROM alpine:latest
RUN apk --update add redis
| # brew install siege | |
| # -c/--concurrent == number of concurrent requests | |
| # -r/--reps == number of times to run the test | |
| siege -c 10 -r 10 -b "http://www.domain.com/" | |
| # Note: doesn't always work with SSL endpoints with self-signed certs | |
| # using Apache Ab in a Docker container seems to do the trick though | |
| # see https://gist.github.com/Integralist/01815f7abc7d18a97341 |
| #!/bin/bash | |
| # script runs rabbit-init.jar waits 30 seconds for it to finish | |
| # (wait time can be set with WAIT_TOTAL env property) | |
| properties_location=$1 | |
| wait_pid() { | |
| local pid="$1"; shift | |
| local wait_total="${1:-10}"; shift # 10 seconds as default timeout |
| #!/usr/local/bin/perl | |
| use strict; | |
| use YAML::Tiny; | |
| my $maxAttempts = 60; | |
| my $timeoutSeconds = 60; | |
| # шаблон для команды получения списка Ready статусов для всех подов с заданым лейблом | |
| my $separator = '\t'; | |
| my $jsonPath = '{range .items[*]}{@.metadata.name}{"'.$separator.'"}{@.status.conditions[?(@.type=="Ready")].status}{"\n"}{end}'; |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| /** | |
| * Type is erase in bytecode, but which method to call is inferred at compile type, when generics are available | |
| */ | |
| class Scratch { | |
| // can be called with Arrays.asList("a", "b"), type is inferred to String |
| #!/bin/sh | |
| # check for where the latest version of IDEA is installed | |
| IDEA=`ls -1d /Applications/IntelliJ\ * | tail -n1` | |
| wd=`pwd` | |
| # were we given a directory? | |
| if [ -d "$1" ]; then | |
| # echo "checking for things in the working dir given" | |
| wd=`ls -1d "$1" | head -n1` |
| /** | |
| * WkHtmlToPdf table splitting hack. | |
| * | |
| * Script to automatically split multiple-pages-spanning HTML tables for PDF | |
| * generation using webkit. | |
| * | |
| * To use, you must adjust pdfPage object's contents to reflect your PDF's | |
| * page format. | |
| * The tables you want to be automatically splitted when the page ends must | |
| * have a class name of "splitForPrint" (can be changed). |
| #!/bin/sh | |
| # Init script for kibana | |
| # From Kibana package | |
| # Generated by pleaserun. | |
| # Implemented based on LSB Core 3.1: | |
| # * Sections: 20.2, 20.3 | |
| # | |
| ### BEGIN INIT INFO | |
| # Provides: kibana | |
| # Required-Start: $remote_fs $syslog |
| user="root" | |
| group="root" | |
| chroot="/" | |
| chdir="/" | |
| nice="" |