Some of the repetitive violations were suppressed.
778B; Unix Shell | 2019-02-15 10:15:10+01 | SLOC 24
1
#!/bin/bash
2 4
{{ docker_bin_dir }}/docker run \
3
  --restart=on-failure:5 \
4
  --env-file=/etc/etcd.env \
5
  --net=host \
6
  -v /etc/ssl/certs:/etc/ssl/certs:ro \
7 8
  -v {{ etcd_cert_dir }}:{{ etcd_cert_dir }}:ro \
8
  -v {{ etcd_data_dir }}:{{ etcd_data_dir }}:rw \
9
{% if etcd_memory_limit is defined %}
10 4
  --memory={{ etcd_memory_limit|regex_replace('Mi', 'M') }} \
11
{% endif %}
12
{% if etcd_cpu_limit is defined %}
13
  --cpu-shares={{ etcd_cpu_limit|regex_replace('m', '') }} \
14
{% endif %}
15
{% if etcd_blkio_weight is defined %}
16
  --blkio-weight={{ etcd_blkio_weight }} \
17
{% endif %}
18
  --name={{ etcd_member_name | default("etcd") }} \
19
  {{ etcd_image_repo }}:{{ etcd_image_tag }} \
20
{% if etcd_ionice is defined %}
21
  /bin/ionice {{ etcd_ionice }} \
22
{% endif %}
23
  /usr/local/bin/etcd \
24
  "$@"