//所需容器:
- plumbing容器: plumbing 'jenkins-slave' container
- build容器: user's build container
//创建data volume
[launchDockerCLI()] caller => CliDockerDriver.java - it.dockins.dockerslaves.drivers.CliDockerDriver - createVolume()
----------------------------
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
""" | |
Zabbix SMTP Alert script for gmail. | |
""" | |
import sys | |
import smtplib | |
from email.MIMEText import MIMEText | |
from email.Header import Header |
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
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### | |
### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget. | |
### You can download all the binaries one-shot by just giving the BASE_URL. | |
### Script might be useful if you need Oracle JDK on Amazon EC2 env. | |
### Script is updated for every JDK release. | |
### Features:- | |
# 1. Resumes a broken / interrupted [previous] download, if any. | |
# 2. Renames the file to a proper name with including platform info. |
- Code for generating the user_hash value for Intercom's Secure mode
- Based on http://www.jokecamp.com/blog/examples-of-creating-base64-hashes-using-hmac-sha256-in-different-languages/#ruby
- When creating this for mobile secure mode, the final output needs to be in lowercase (the web version accepts both upper and lower case)
- So Javascript code below should only be used for testing unless modified and used to run on a server
【测试步骤】
1. 创建jenkins-server-no-sg容器(无sg),分配fip,可以访问8080
2. 创建sg-50000
3. 创建jenkins-server-with-sg容器(带sg-50000),分配fip,无法访问8080
4. 创建sg-8080,添加到jenkins-server-with-sg容器上,可以访问8080
5. 从jenkins-server-with-sg移除sg-8080,无法访问8080
6. 用sg-jenkins-create.yaml创建sg-jenkins,添加到jenkins-server-with-sg容器上,无法访问8080
7. 用sg-jenkins-update.yaml更新sg-jenkins,可以访问8080
8. 从容器jenkins-server-with-sg移除sg-jenkins,无法访问8080
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
stop all | |
Gathering containers information | |
sessionId rkinjsit, self.session.sessionId rkinjsit | |
[list method] detected 0 containers | |
Pulling xjimmyshcn/hyperkins:be0232ac35d96b4cbb0113e1444165882a3b9051 | |
Starting to pull from local registry | |
Layer '6a5a5368e0c2' already exists | |
... | |
Layer 'eccda1695d2b' already exists | |
Image pull took: 953 ms |
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
Pulling cf-integration image... | |
Creating machine | |
zone: us-central1-a | |
type: n1-standard-4 | |
Creating CA: /root/.docker/machine/certs/ca.pem | |
Creating client certificate: /root/.docker/machine/certs/cert.pem | |
Running pre-create checks... | |
(cf-integration-201609261611-050151665) Check that the project exists | |
(cf-integration-201609261611-050151665) Check if the instance already exists | |
Creating machine... |
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
def interfaces = NetworkInterface.getNetworkInterfaces() | |
while (interfaces.hasMoreElements()) { | |
def addresses = interfaces.nextElement().getInetAddresses() | |
while (addresses.hasMoreElements()) { | |
println addresses.nextElement().getHostAddress() | |
} | |
} |
To accomplish this tutorial you already need a previous copy of OSX installed on VMWare Player or Workstation.
First of all you need to acquire a legal copy of OSX El Capitan from the App Store. This tutorial will not cover this part. Sorry :)
Download the latest version of VMWare Unlocker and use the relative binary to unlock it ( based on your Host OS ).