Docker Compose 存放在Git Hub,不太稳定。 你可以也通过执行下面的命令,高速安装Docker Compose。
curl -L https://get.daocloud.io/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
| (function() { | |
| var core = { | |
| require : function(source) { | |
| if ( typeof (source) != "object" || !source) | |
| throw new TypeError("Object needed as source."); | |
| for (var property in source) | |
| if (source.hasOwnProperty(property) && !this.prototype.hasOwnProperty(property)) | |
| this.prototype[property] = source[property]; | |
| }, | |
| override : function(source) { |
| /** | |
| * Combination Constructor/Prototype Pattern | |
| */ | |
| //constructor | |
| function Something(name){ | |
| //properties | |
| this.name = name; | |
| } | |
| //prototype |
| /** | |
| * 首先安装PEAR,安装完毕后依次执行以下命令 | |
| */ | |
| pear upgrade-all | |
| pear channel-discover pear.phpunit.de | |
| pear channel-discover components.ez.no | |
| pear channel-discover pear.symfony-project.com | |
| pear update-channels | |
| ------------------------ | |
| pear install --alldeps --force phpunit/PHPUnit |
| /** | |
| * jeasyui combotree中,Ajax异步加载时,使用缓存,可以让其他字段共用该数据 | |
| * todo: 没有成功 | |
| */ | |
| $('#city_id').combotree({ | |
| textField: 'name', | |
| valueField: 'id', | |
| multiple: false, | |
| onBeforeLoad: function(param){ | |
| console.log('onBeforeLoad'); |
| define(function(require, exports, module){ | |
| var $ = require('jquery'); | |
| $.ajaxSettings.async = false; | |
| var LargeLocalStorage = require('largeLocalStorage/largeLocalStorage'); | |
| // for debug : window.lls = LargeLocalStorage; | |
| /** | |
| *get Local Data 获取数据 | |
| * @param {String} name | |
| * @returns {JSON} |
| var pattern = /^[a-z][a-z0-9_]*(\.[a-z0-9_]+)+[0-9a-z_]$/i; | |
| [ | |
| "me.unfollowers.droid", | |
| "me_.unfollowers.droid", | |
| "me._unfollowers.droid", | |
| "me.unfo11llowers.droid", | |
| "me11.unfollowers.droid", | |
| "m11e.unfollowers.droid", | |
| "1me.unfollowers.droid", |
| user nginx; | |
| worker_processes 1; | |
| error_log /var/log/nginx/error.log warn; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } |
sudo yum remove docker docker-common docker-selinux docker-enginesudo yum install -y yum-utils device-mapper-persistent-data lvm2| # golang-devops-and-auto-deploy | |
| image: zacksleo/golang | |
| stages: | |
| - test | |
| - build | |
| - deploy | |
| variables: | |
| GOPATH: /root |