mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-06-06 23:26:17 +02:00
update
This commit is contained in:
parent
dd158651e7
commit
acbde35503
@ -1,6 +1,8 @@
|
|||||||
etcd-arm
|
etcd-arm
|
||||||
========
|
========
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Cross compilation for Raspberry Pi
|
## Cross compilation for Raspberry Pi
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
grep -oP '(?<=<h4>).*(?=</h4>)' |
|
grep -oP '(?<=<h4>).*(?=</h4>)' |
|
||||||
cut -d : -f 2 |
|
cut -d : -f 2 |
|
||||||
sed -e 'N;N;N;s/\n/,/g' \
|
sed -e 'N;N;N;s/\n/,/g' \
|
||||||
-e 's/$/,127.0.0.1/' \
|
-e 's/$/,0.0.0.0/' \
|
||||||
-e 's/$/,1080/' \
|
-e 's/$/,1080/' \
|
||||||
-e 's/$/,300/'
|
-e 's/$/,300/'
|
||||||
} |
|
} |
|
||||||
|
18
etcd-arm/docker-compose.yml
Normal file
18
etcd-arm/docker-compose.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
etcd:
|
||||||
|
image: vimagick/etcd-arm
|
||||||
|
command: |
|
||||||
|
-name pi2
|
||||||
|
-data-dir=/var/lib/etcd
|
||||||
|
-listen-client-urls http://0.0.0.0:2379
|
||||||
|
-advertise-client-urls http://192.168.1.229:2379
|
||||||
|
-listen-peer-urls http://0.0.0.0:2380
|
||||||
|
-initial-advertise-peer-urls http://192.168.1.229:2380
|
||||||
|
-initial-cluster-token pi-cluster
|
||||||
|
-initial-cluster pi0=http://192.168.1.228:2380,pi1=http://192.168.1.207:2380,pi2=http://192.168.1.229:2380
|
||||||
|
-initial-cluster-state new
|
||||||
|
ports:
|
||||||
|
- "2379:2379"
|
||||||
|
- "2380:2380"
|
||||||
|
volumes:
|
||||||
|
- /var/lib/etcd
|
||||||
|
restart: always
|
@ -5,4 +5,4 @@ keys = [
|
|||||||
"/services/shadowsocks"
|
"/services/shadowsocks"
|
||||||
]
|
]
|
||||||
check_cmd = "jq . {{.src}}"
|
check_cmd = "jq . {{.src}}"
|
||||||
#reload_cmd = "supervisorctl update"
|
reload_cmd = "systemctl restart shadowsocks-libev@client"
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
ETCD_NAME=pi2
|
ETCD_NAME=pi2
|
||||||
ETCD_DATA_DIR=/var/lib/etcd
|
ETCD_DATA_DIR=/var/lib/etcd
|
||||||
ETCD_INITIAL_ADVERTISE_PEER_URLS=http://192.168.1.229:2380
|
ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379
|
||||||
ETCD_LISTEN_PEER_URLS=http://192.168.1.229:2380
|
|
||||||
ETCD_LISTEN_CLIENT_URLS=http://192.168.1.229:2379,http://127.0.0.1:2379
|
|
||||||
ETCD_ADVERTISE_CLIENT_URLS=http://192.168.1.229:2379
|
ETCD_ADVERTISE_CLIENT_URLS=http://192.168.1.229:2379
|
||||||
|
ETCD_LISTEN_PEER_URLS=http://0.0.0.0:2380
|
||||||
|
ETCD_INITIAL_ADVERTISE_PEER_URLS=http://192.168.1.229:2380
|
||||||
ETCD_INITIAL_CLUSTER_TOKEN=pi-cluster
|
ETCD_INITIAL_CLUSTER_TOKEN=pi-cluster
|
||||||
ETCD_INITIAL_CLUSTER=pi0=http://192.168.1.228:2380,pi1=http://192.168.1.207:2380,pi2=http://192.168.1.229:2380
|
ETCD_INITIAL_CLUSTER=pi0=http://192.168.1.228:2380,pi1=http://192.168.1.207:2380,pi2=http://192.168.1.229:2380
|
||||||
ETCD_INITIAL_CLUSTER_STATE=new
|
ETCD_INITIAL_CLUSTER_STATE=new
|
||||||
|
Loading…
x
Reference in New Issue
Block a user