@mizchi / Quipper
- 人間性捧げすぎて資料作るの忘れてました
前提 | |
----------- | |
- docker 0.9.1 | |
- lxcを入れること | |
- linux 3.11で確認。 3.8以上じゃないとだめっぽい。 | |
- ubuntu image (docker pull ubuntuで取ってきたもので試してみた) | |
- imageにはpython2を入れておくこと | |
- /usr/bin/tee がimageにあること |
作成者にもかかわらず、いきなり遅刻しました。ごめんなさい。`Rust Advent Calendar 2013`_、今からでも参加できますのでぜひ。
今日はRustの特徴を簡潔に紹介します。
Why Should I Care (For Developers)
"Dockerが面白いのはシンプルな環境に隔離性と再現性をもたらしてくれることだ.ランタイムの環境を一度作れば、パッケージにして別のマシンでも再利用することできる.さらに,すべてはホスト内の隔離された環境で行われる(VMのように).最も素晴らしい点は,シンプルかつ高速であることだ."
# 2つのインデックスの場合に集計してくれる? | |
curl -XPOST 'http://localhost:9200/stats_facet1' | |
curl -XPOST 'http://localhost:9200/stats_facet2' | |
## データ登録 | |
curl -XPOST 'http://localhost:9200/stats_facet1/1001/1' -d ' | |
{ | |
"person.id" : 1234, | |
"person.payment":10 | |
}' |
FROM ubuntu | |
RUN sed -i 's/main/main universe multiverse/' /etc/apt/sources.list | |
RUN apt-get update -q | |
RUN apt-get install -qy build-essential python-dev python-pip curl | |
#RUN apt-get install -qy autoconf | |
RUN pip install ansible | |
RUN mkdir -p /etc/ansible | |
RUN curl -L https://github.com/gc3-uzh-ch/ansible-playbooks/archive/cloud.tar.gz | tar -zxf- | |
RUN /bin/echo -e "[slurm_master]\nlocalhost" > /etc/ansible/hosts | |
RUN cp /bin/true /bin/hostname |
This is not intended to be comprehensive or authoritative, just free online resources I've found valuable while learning more about Erlang.
- hosts: localhost | |
connection: local | |
vars: | |
role: common | |
tasks: | |
- name: create directories for ansible files. | |
file: path={{ item }} state=directory | |
with_items: | |
- group_vars | |
- host_vars |