-
http://lifuzu.com/blog/2016/03/21/feeding-build-logs-into-elasticsearch-with-logstash-on-jenkins/
-
Docker image for Jenkins: https://hub.docker.com/_/jenkins/
docker run -p 8080:8080 -p 50000:50000 jenkins
Check for Jenkins on http://localhost:8080
| # best practice: linux | |
| nano ~/.pgpass | |
| *:5432:*:username:password | |
| chmod 0600 ~/.pgpass | |
| # best practice: windows | |
| edit %APPDATA%\postgresql\pgpass.conf | |
| *:5432:*:username:password | |
| # linux |
| from flask import Flask, g, jsonify | |
| import werkzeug, os | |
| from werkzeug.utils import secure_filename | |
| import psycopg2 | |
| from psycopg2 import pool | |
| def get_db(): | |
| print ('GETTING CONN') | |
| if 'db' not in g: |
http://lifuzu.com/blog/2016/03/21/feeding-build-logs-into-elasticsearch-with-logstash-on-jenkins/
Docker image for Jenkins: https://hub.docker.com/_/jenkins/
docker run -p 8080:8080 -p 50000:50000 jenkins
Check for Jenkins on http://localhost:8080
| public final class BusyApp { | |
| public static void main(String []args) throws Exception { | |
| final java.util.Random generator = new java.util.Random(); | |
| while (true) { | |
| generator.ints(1000000, 0, 100).sorted(); | |
| Thread.sleep(5000L); | |
| } | |
| } | |
| } |
| body { | |
| font-family: Helvetica, arial, sans-serif; | |
| font-size: 14px; | |
| line-height: 1.6; | |
| padding-top: 10px; | |
| padding-bottom: 10px; | |
| background-color: white; | |
| padding: 30px; } | |
| body > *:first-child { |