# Install Docker and Consul on both hosts
sudo apt-get install -y unzip wget curl
wget -qO- https://experimental.docker.com/ | sh
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
# install the kernel from utopic (on both nodes) | |
apt-get install -y linux-image-generic-lts-utopic | |
reboot | |
# install experimental docker release (on both nodes) | |
wget -qO- https://experimental.docker.com/ | sh | |
# install consul (on both nodes) | |
curl -OL https://dl.bintray.com/mitchellh/consul/0.5.2_linux_amd64.zip | |
apt-get install -y unzip |
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
wait4eth1() { | |
CNT=0 | |
until ip a show eth1 | grep -q UP | |
do | |
[ $((CNT++)) -gt 60 ] && break || sleep 1 | |
done | |
sleep 1 | |
} | |
wait4eth1 |
- 更新
2024-04-16
- 作者
@voluntas
- バージョン
2024.1
- URL
概要
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
#include <cstdio> | |
#include <cstring> | |
#include <cassert> | |
typedef enum { | |
MyOrderedAscending = -1, | |
MyOrderSame, | |
MyOrderedDescending | |
} MyComparisonResult; |
- ダッシュボード
- 何も考えずに各モデルをカウントするのでレコード件数増えるとえらいことになる。
Data directories are created in /home/coreos
and mounted into the container using volume cli options of docker run. All data the container writes is stored on the host and as long as the host persists safe against container restarts / recreates.
- Pro
- No effort, just create the directories and mount them into the container
- Contra
- Container is bound to host (unable to failover)
The best way to learn and master iOS development is to read the official documentation. It can be boring but you can trust its accuracy and the information will be presented without opinion.
Read documents in order where indicated.