- Docker 錦囊妙計
- 建構微服務:設計細微化的系統
- 從車庫的舊 PC 到百萬台伺服器:巨型網站成長從無到無限大,技術架構大揭祕
- 克服團隊領導的 5 大障礙:洞悉人性、解決衝突的白金法則
- Kubernetes 權威指南(從Docker到Kubernetes實踐全接觸)
- 微服務架構與實踐
- DevOps 實戰:VMware 管理員運維方法、工具及最佳實踐
- Docker 源碼分析
| # Add these methods to your ApplicationController. Then, any controller | |
| # that inherits from it will have these methods and can programmatically | |
| # determine what filters it has set. | |
| class ApplicationController < ActionController::Base | |
| def self.filters(kind = nil) | |
| all_filters = _process_action_callbacks | |
| all_filters = all_filters.select{|f| f.kind == kind} if kind | |
| all_filters.map(&:filter) | |
| end |
docker network create lb
docker run -d --name nginx1 --net lb --net-alias nginx nginx
docker run -d --name nginx2 --net lb --net-alias nginx nginx
docker run -d --name nginx-lb -p 80:80 -v $(pwd):/data --net lb nginx
docker exec -ti nginx-lb bash
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| { | |
| "presets": ["es2015"], | |
| "plugins": ["transform-runtime"] | |
| } |
| #!/bin/bash | |
| # Install docker in ubuntu 14.04 | |
| # Update your apt sources | |
| sudo apt-get update | |
| sudo apt-get install --assume-yes apt-transport-https ca-certificates | |
| sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
| sudo touch /etc/apt/sources.list.d/docker.list | |
| sudo chmod 777 /etc/apt/sources.list.d/docker.list | |
| echo 'deb https://apt.dockerproject.org/repo ubuntu-trusty main' >> /etc/apt/sources.list.d/docker.list |
| { | |
| "name": "my-app", | |
| "version": "1.0.0", | |
| "description": "My test app", | |
| "main": "src/js/index.js", | |
| "scripts": { | |
| "jshint:dist": "jshint src/js/*.js'", | |
| "jshint": "npm run jshint:dist", | |
| "jscs": "jscs src/*.js", | |
| "browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js", |
This guide assumes that you recently run brew upgrade postgresql and discovered to your dismay that you accidentally bumped from one major version to another: say 9.3.x to 9.4.x. Yes, that is a major version bump in PG land.
First let's check something.
brew info postgresqlThe top of what gets printed as a result is the most important:
I've been using a lot of Ansible lately and while almost everything has been great, finding a clean way to implement ansible-vault wasn't immediately apparent.
What I decided on was the following: put your secret information into a vars file, reference that vars file from your task, and encrypt the whole vars file using ansible-vault encrypt.
Let's use an example: You're writing an Ansible role and want to encrypt the spoiler for the movie Aliens.
編號. 書名 / 進度: