- [x]名前空間
- [x]バインドマウント
- [x]chroot, pivot_root
- [x]capability
- [ ]cgroup
- [x]Unionファイルシステム
- [ ]veth
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
#!/bin/sh | |
group=/sys/fs/cgroup/cpu/$(basename $0)-$$ | |
mkdir $group | |
echo $$ > $group/tasks | |
echo $1 > $group/cpu.shares | |
exec /bin/sh -c 'yes >> /dev/null' |
moved to https://github.com/hayajo/aqr
WIP!WIP!
Docker 1.11になってバックエンドがrunC(docker-runc)になったので、drootのように素朴に運用できないか検討してみました。
検証環境のVagrantfileはつぎのとおりです。
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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Option+b to Ctrl+Option+b</name> | |
<identifier>remap.opt_b2ctrl_opt_b</identifier> | |
<not>TERMINAL</not> | |
<autogen> | |
__KeyToKey__ | |
KeyCode::B, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION, | |
KeyCode::B, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_OPTION |
Scalatraで作成されJettyを組み込んだ実行可能なjarをServer::Starterで実行して、ホットデプロイを可能にするまでの簡単な手順です。
これにより、クラスローダーを利用した運用からLLと同様な形態でアプリケーションを運用することが可能となります(アプリケーションごとにJVMプロセスを起動する)。
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
package main | |
import ( | |
"flag" | |
"fmt" | |
"os" | |
"strconv" | |
) | |
func NewProxy(args []string, fs *flag.FlagSet) (*Proxy, error) { |
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
let hintcharacters = "sadfjklewcmpgh" | |
let blacklists = ["*://mail.google.com/*", "*://docs.google.com/*", "*://feedly.com/*", "*://twitter.com/*", "*://getpocket.com/*", "*://cacoo.com/*"] |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "boxcutter/ubuntu1404" | |
config.vm.network "forwarded_port", guest: 8080, host: 8080 | |
config.vm.provision "shell", inline: <<-SHELL | |
apt-get update |