Unionize lets you connect together docker containers in arbitrarily complex scenarios.
Just check those examples.
Let's create two containers, running the web tier and the database tier:
1 Party: Alice, Bob | |
2 fun shared_pow(ai: Alice Int, bi: BobInt): Shared Int | |
3 { | |
4 Var i: Public Int, | |
5 sum: Shared Int | |
6 | |
7 for i in 0..pi | |
8 sum = sum + ai * bi | |
9 end | |
10 |
def main_shared_pow(ai,pi) | |
i = PDL_IO.initValue() | |
sum_A = PDL_IO.initValue() | |
for i in 0..pi | |
temp_0e981.set s_product(ai, 0, 4294967296) | |
temp_2abd4.set s_plus(sum_A, temp_0e981, 4294967296) | |
sum_A.set temp_2abd4 |
def main_shared_pow(bi,pi) | |
i = PDL_IO.initValue() | |
sum_B = PDL_IO.initValue() | |
for i in 0..pi | |
temp_463c91.set s_product(0, bi, 4294967296) | |
temp_47b34c.set s_plus(sum_B, temp_463c91, 4294967296) | |
sum_B.set temp_47b34c |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQClRlcYqA+hZUeFbp6Frc950MYJc691/NxfLfE/E231sr6sFp2/fkb4VPaXdT9C85cWArmxYD8Sl+jw2RTsa6YnFSSxkaRvAIG4AflQ111aUrPnkEoY+GL3H9aUGm2AucvZwxLyAa63VcwORjmoqBEW2xJcmQBuGFff6m2WIQGMjpv45XAZ2XhEi69jojD4P8WiyPgOFyJTVBHQ9wkrC7thg/GYSrOkHCip8hcTTQEMYmQSZYh92zx1znIZPvjtJD4cQNeXGbz/zHOhg9OQk3FGt4bWTOsIitlpLppa3HPtv48FDSA3Yz7VU/ZkdhFBlLpskpSwlKzNu1g5lGKhWEx9 snowmantw@snowmantw-console |
#!/bin/bash | |
# Run Rsync to copy data from the remote server. | |
# Arguments: | |
# | |
# LOGIN : username to login the remote server | |
# DIRNAME : the directory want to sync | |
# SERVER : the FQDN of the remote server | |
# RMPATH : import directory path of the remote server | |
# LMPATH : import directory path of the local server |
#!/bin/bash | |
# Run Rsync to copy data from the remote server. | |
# Arguments: | |
# | |
# LOGIN : username to login the remote server | |
# DIRNAME : the directory want to sync | |
# SERVER : the FQDN of the remote server | |
# RMPATH : import directory path of the remote server | |
# LMPATH : import directory path of the local server |
程式語言在整體層面有高與低 | |
整體層面的考量之下,語言在純粹語言層面有高與低 | |
純粹語言層面的高低考量包含是否能被驗證,以及驗證是否準確對應到現實中語言的執行表現 | |
整體層面的另外高低標準,還有其用處是否廣泛 | |
低語言在現實中已經存在的用處,可能比高語言要多 | |
高語言缺乏這些用處,不代表其在語言層面比低語言差 | |
如果要讓高語言於評判整體上也是最佳,最理想的情況是高語言有全部的用處 | |
但現實是高語言的用處,在現實比低語言少 | |
要解決這個問題,就必須讓好語言用處增加 |
Unionize lets you connect together docker containers in arbitrarily complex scenarios.
Just check those examples.
Let's create two containers, running the web tier and the database tier:
#!/bin/bash | |
# Use unionize.sh to control networks of docker containers. | |
# Patched by snowmantw@gmail.com | |
# Original version: https://gist.github.com/jpetazzo/5493295 | |
set -e | |
CGROUP=/sys/fs/cgroup/devices/lxc | |
[ -d $CGROUP ] || { | |
echo "Please set CGROUP in $0 first." |
call pathogen#infect() | |
set number | |
set softtabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set nowrap | |
set t_Co=256 | |
set encoding=utf-8 | |
set autoread |