国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
# Get Root | |
sudo su | |
# Download NMON archive | |
cd /tmp | |
wget --no-check-certificate https://sourceforge.net/projects/nmon/files/nmon16e_mpginc.tar.gz | |
# Untar archive | |
tar -xzvf nmon16e_mpginc.tar.gz | |
... | |
gzip on; | |
gzip_static on; | |
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; | |
gzip_proxied any; | |
gzip_vary on; | |
gzip_comp_level 6; | |
gzip_buffers 16 8k; | |
gzip_http_version 1.1; |
//The global script scope | |
def ctx = context(scope: scriptScope()) | |
//What things can be on the script scope | |
contributor(ctx) { | |
method(name: 'pipeline', type: 'Object', params: [body: Closure]) | |
method(name: 'build', type: 'Object', params: [job: 'java.lang.String'], doc: 'Build a job') | |
method(name: 'build', type: 'Object', namedParams: [parameter(name: 'job', type: 'java.lang.String'), parameter(name: 'parameters', type: 'Map'), parameter(name: 'propagate', type: 'boolean'), parameter(name: 'quietPeriod', type: 'java.lang.Integer'), parameter(name: 'wait', type: 'boolean'),], doc: 'Build a job') | |
method(name: 'echo', type: 'Object', params: [message: 'java.lang.String'], doc: 'Print Message') | |
method(name: 'emailextrecipients', type: 'Object', params: [recipientProviders: 'Map'], doc: 'Extended Email Recipients') |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
//The global script scope | |
def ctx = context(scope: scriptScope()) | |
//What things can be on the script scope | |
contributor(ctx) { | |
method(name: 'pipeline', type: 'Object', params: [body: Closure]) | |
property(name: 'params', type: 'org.jenkinsci.plugins.workflow.cps.ParamsVariable') | |
property(name: 'env', type: 'org.jenkinsci.plugins.workflow.cps.EnvActionImpl.Binder') | |
property(name: 'currentBuild', type: 'org.jenkinsci.plugins.workflow.cps.RunWrapperBinder') | |
property(name: 'scm', type: 'org.jenkinsci.plugins.workflow.multibranch.SCMVar') |
version: "3" | |
services: | |
hub: | |
image: selenium/hub | |
ports: | |
- "4444:4444" | |
healthcheck: | |
test: ["CMD", "wget", "--spider", "http://localhost:4444/grid/api/proxy"] | |
interval: 10s | |
timeout: 5s |
postgres: | |
image: postgres:9.4 | |
volumes: | |
- ./init.sql:/docker-entrypoint-initdb.d/init.sql |
#!/bin/bash | |
# Centos 7/8 John the Ripper Installation | |
#release=(j 1.8.0) | |
release=(k 1.9.0) | |
# Check Centos version | |
if [ -f /etc/redhat-release ] ; then | |
source /etc/os-release | |
if [ $VERSION_ID == "8" ] ; then | |
packager=dnf | |
elif [ $VERSION_ID == "7" ] ; then |
# Get Root | |
sudo su | |
# Download NMON archive | |
cd /tmp | |
wget http://nmon.sourceforge.net/docs/MPG_nmon_for_Linux_14a_binaries.zip | |
# Install unzip if you don't have | |
yum install unzip |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Disabled</key> | |
<false/> | |
<key>Label</key> | |
<string>com.edb.launchd.postgresql-9.1</string> | |
<key>ProgramArguments</key> |