File tree Expand file tree Collapse file tree 8 files changed +9
-2
lines changed Expand file tree Collapse file tree 8 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ onex::etcd::docker::install()
22
22
{
23
23
onex::common::network
24
24
docker run -d --name onex-etcd \
25
+ --restart always \
25
26
--network onex \
26
27
-v ${ONEX_ETCD_DIR} :/etcd-data \
27
28
-p ${ONEX_ACCESS_HOST} :${ONEX_ETCD_CLIENT_PORT} :2379 \
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ onex::jaeger::docker::install()
19
19
{
20
20
onex::common::network
21
21
docker run -d --name onex-jaeger \
22
+ --restart always \
22
23
--network onex \
23
24
-e COLLECTOR_ZIPKIN_HOST_PORT=:9411 \
24
25
-p ${ONEX_ACCESS_HOST} :6831:6831/udp \
Original file line number Diff line number Diff line change @@ -19,8 +19,9 @@ ONEX_KAFKA_PORT=${ONEX_KAFKA_PORT:-4317}
19
19
onex::kafka::docker::install ()
20
20
{
21
21
onex::common::network
22
- docker run -d --name onex-zookeeper --network onex -p 2181:2181 -t wurstmeister/zookeeper
22
+ docker run -d --restart always -- name onex-zookeeper --network onex -p 2181:2181 -t wurstmeister/zookeeper
23
23
docker run -d --name onex-kafka --link onex-zookeeper:zookeeper \
24
+ --restart always \
24
25
--network onex \
25
26
--restart=always \
26
27
-v /etc/localtime:/etc/localtime \
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ onex::mariadb::docker::install()
23
23
24
24
onex::common::network
25
25
docker run -d --name onex-mariadb \
26
+ --restart always \
26
27
--network onex \
27
28
-v ${ONEX_THIRDPARTY_INSTALL_DIR} /mariadb:/var/lib/mysql \
28
29
-p ${ONEX_ACCESS_HOST} :${ONEX_MYSQL_PORT} :3306 \
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ onex::mongo::docker::install()
28
28
29
29
onex::common::network
30
30
docker run -d --name onex-mongo \
31
+ --restart always \
31
32
--network onex \
32
33
-v ${ONEX_THIRDPARTY_INSTALL_DIR} /mongo:/data \
33
34
-p ${ONEX_ACCESS_HOST} :${ONEX_MONGO_PORT} :27017 \
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ onex::onex::docker::install()
41
41
# "Failed to get D-Bus connection: Operation not permitted"
42
42
onex::common::network
43
43
docker run -d --name onex \
44
+ --restart always \
44
45
--network onex \
45
46
--privileged \
46
47
-v onex-volume:${ONEX_INSTALL_DIR} :rw \
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ onex::redis::docker::install()
22
22
23
23
onex::common::network
24
24
docker run -d --name onex-redis \
25
+ --restart always \
25
26
--network onex \
26
27
-v ${ONEX_THIRDPARTY_INSTALL_DIR} /redis:/data \
27
28
-p ${ONEX_ACCESS_HOST} :${ONEX_REDIS_PORT} :6379 \
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ ONEX_TEMPLATE_PORT=${ONEX_TEMPLATE_PORT:-xxxx}
17
17
# Install template using containerization.
18
18
onex::template::docker::install ()
19
19
{
20
- # docker run -d --name onex-xxx ...
20
+ # docker run -d --restart always -- name onex-xxx ...
21
21
onex::template::status || return 1
22
22
onex::template::info
23
23
onex::log::info " install template successfully"
You can’t perform that action at this time.
0 commit comments