This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#jnlp-slave is based on slave, which in turn is based on scm-stretch debian 9.8 | |
FROM jenkins/jnlp-slave:latest-jdk11 | |
USER jenkins | |
# ==== Everything above this line is just to set an example context. Meaning - not important ==== | |
# Install Local ruby | |
RUN git clone https://github.com/rbenv/rbenv.git ~/.rbenv \ | |
&& echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
journalctl -u docker.service --since "2019-02-12 07:45:00" _TRANSPORT=stdout + OBJECT_EXE=docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script parses a Scout2 output to produce a summary with findings reduced and grouped based on their level | |
tail -n +2 scout2-report/inc-awsconfig/aws_config.js \ Fri Dec 14 11:51:04 2018 | |
| jq '.services[].findings | with_entries( select(.value | has("flagged_items") ) ) | with_entries( select(.value.flagged_items >0 ) ) | select(keys | length >0) | map(select(.flagged_items>0))' \ | |
| jq -s '. | flatten | group_by(.level) |map({"level": .[0].level, value: map(.flagged_items) | add})' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Changing the cache TTL to something bigger might be useful, and this command let's you check what it's currently at | |
jrunscript -e "print(java.security.Security.getProperty(\"networkaddress.cache.ttl\"))" | |
# And this let's you check that value for a docker image | |
docker run -it openjdk:8u151 /bin/bash -c 'jrunscript -e "print(java.security.Security.getProperty(\"networkaddress.cache.ttl\"))"' |