Skip to content

Instantly share code, notes, and snippets.

@Eugene-Shapovalov
Eugene-Shapovalov / jenkins_rvm.Dockerfile
Created January 10, 2018 16:28 — forked from nickgnd/jenkins_rvm.Dockerfile
Jenkins and RVM with Ruby 2.2.3 - Docker image
# v1.0
# November 21, 2015
FROM jenkins:latest
MAINTAINER NickGnd "[email protected]"
# https://github.com/jenkinsci/docker/blob/4fa9ebc13069fa8186728622cd63702cddf11162/Dockerfile
ENV RUBY_VERSION 2.2.3
# --handlerCountStartup = set the no of worker threads to spawn at startup. Default is 5
[user]
name = ****
email = ****
[github]
user = ****
token = ****
[color]
branch = auto
diff = auto
status = auto
class ActiveSupport::BufferedLogger
def formatter=(formatter)
@log.formatter = formatter
end
end
class Formatter
SEVERITY_TO_TAG_MAP = {'DEBUG'=>'meh', 'INFO'=>'fyi', 'WARN'=>'hmm', 'ERROR'=>'wtf', 'FATAL'=>'omg', 'UNKNOWN'=>'???'}
SEVERITY_TO_COLOR_MAP = {'DEBUG'=>'0;37', 'INFO'=>'32', 'WARN'=>'33', 'ERROR'=>'31', 'FATAL'=>'31', 'UNKNOWN'=>'37'}
PROTOCOL_COLOR = 34